php数组整理

1,二维数组根据一个的指定字段排序

$disa=array_column($list,'distance');
array_multisort($disa, 1, $list);

 

你可能感兴趣的:(php,整理,php数组)