<!DOCTYPE html>
<html>
<body>

<?php
$age=array("Bill"=>"35","Steve"=>"37","Peter"=>"43");
krsort($age);

foreach($age as $x=>$x_value)
    {
    echo "Key=" . $x . ", Value=" . $x_value;
    echo "<br>";
    }
?>

</body>
</html>