$response_data = [
[
"name" => "余彦庆",
"group" => "集团总部",
"cate" => "中专",
"at" => "无",
"num" => 0,
"pay" => 0,
"actual_pay" => 0,
],
[
"name" => "余彦庆",
"group" => "集团总部",
"cate" => "成考大专",
"at" => "无",
"num" => 1,
"pay" => 6030,
"actual_pay" => 800,
],
[
"name" => "叶明保",
"group" => "集团总部",
"cate" => "中专",
"at" => "无",
"num" => 1,
"pay" => 2000,
"actual_pay" => 2000,
],
[
"name" => "叶明保",
"group" => "集团总部",
"cate" => "成考本科",
"at" => "无",
"num" => 5,
"pay" => 48500,
"actual_pay" => 2400,
],
];
$pay = array_column($response_data,'pay');
array_multisort($pay,SORT_DESC,$response_data);
halt($res);
结果
如果您觉得本篇对你有帮助,可以点关注,给个赞,支持一下,过程有遇到什么问题也欢迎评论私信,进行交流
|