Run »
4,"b"=>2,"c"=>8,"d"=>6); uksort($arr,"my_sort"); foreach($arr as $x=>$x_value) { echo "Key=" . $x . ", Value=" . $x_value; echo "
"; } ?>
Key=a, Value=4
Key=b, Value=2
Key=c, Value=8
Key=d, Value=6