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