使用用户自定义的比较函数对数组$a 中的元素进行排序: <?php function my_sort($a,$b) { if ($a==$b) return 0; return ($a<$b)?-1:1; } $a=array(4,2,8,6); usort($a ...
確定! 回上一頁