13,"name"=>"kitty"),array("ID"=>22,"name"=>"sony"),array("ID"=>17,"name"=>"picker"));我想对">
时间:2021-07-01 10:21:17 帮助过:20人阅读
$ary=array(array("ID"=>13,"name"=>"kitty"),array("ID"=>22,"name"=>"sony"),array("ID"=>17,"name"=>"picker")); foreach ($ary as $key => $value) { $Id[$key] =$value['ID']; $Name[$key] = $value['name']; } array_multisort($Id, SORT_ASC,$ary); print_r($ary);