标签: php arrays sorting
我有这个数组
[{"student_id":"5","average":2.5},{"student_id":"4","average":4.5},{"student_id":"3","average":3},{"student_id":"1","average":3.5}]
我想按平均值从高到低排序。 然后,仅显示两个最大值及其学生ID。