时间:2021-07-01 10:21:17 帮助过:11人阅读
$a[0][0]="3499230933";$a[0][1]=9.25;$a[1][0]="4499230933";$a[1][1]=9.25;$a[2][0]="2499230933";$a[2][1]=10;$a[3][0]="1499230933";$a[3][1]=9.70;$a[4][0]="6499230933";$a[4][1]=9.45;$a[5][0]="5499230933";$a[5][1]=9.27;foreach($a as $v) $r[] = $v[1];array_multisort($r, SORT_DESC, $a);print_r($a);
Array( [0] => Array ( [0] => 2499230933 [1] => 10 ) [1] => Array ( [0] => 1499230933 [1] => 9.7 ) [2] => Array ( [0] => 6499230933 [1] => 9.45 ) [3] => Array ( [0] => 5499230933 [1] => 9.27 ) [4] => Array ( [0] => 3499230933 [1] => 9.25 ) [5] => Array ( [0] => 4499230933 [1] => 9.25 ))
谢谢你,超感动的,真的很感谢。