源代码:
4,"b"=>2,"c"=>8,d=>"6"); uasort($arr,"my_sort"); foreach($arr as $x=>$x_value) { echo "Key=" . $x . ", Value=" . $x_value; echo " "; } ?>
运行结果: