PHP数组排序问题 $a=array(3=>1,6=>3,4=>2,5=>1);asort($a);打印效果是Array ( [5] => 1 [3] => 1 [4] => 2 [6] => 3 ),实际需求希望得到Array ( [3] => 1 [5] => 1 [4] => 2 [6] => 3 )参考... blzxadmin179 5年前 (2019-06-14) 98℃ 暂无评论 7喜欢