<html>
<body>
$age=array("Peter"=>"35","Ben"=>"37","Joe"=>"43");
krsort($age);
foreach($age as $x=>$x_value)
{
echo "Key=" . $x . ", Value=" . $x_value;
echo "<br>";
}
</body>
<!-- Mirrored from www.w3schools.com/php/phptryit.asp?filename=tryphp_func_krsort by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 21 Dec 2022 17:22:33 GMT -->
</html>