时间:2021-07-01 10:21:17 帮助过:9人阅读
array( [0] = array( ['a'] = 323, ['b'] = array( ['b1'] = 1 ) ) [1] = array( ['a'] = 234, ['b'] = array( ['b1'] = 1 ) ) [2] = array( ['a'] = 135, ['b'] = array( ['b1'] = 2 ) ) )
array('a'=>323,'b'=>array('b1'=>1)), 1=>array('a'=>324,'b'=>array('b1'=>1)), 2=>array('a'=>135,'b'=>array('b1'=>2)), ); usort($array,'cmp'); var_export($array);
------解决方案--------------------