我有一组数组,我需要对它们进行数字排序:例如:
$a= array('Adam','maths',3,'physics',5,'sports',6)
$b= array('Mike','maths',6,'physics',2,'sports',8)
$c= array('Sam','maths',3,'physics',9,'sports',6)
$all = array($a,$b,$c)
现在我需要通过仅考虑数字来对 $all 进行排序。函数排序有替代方法吗?谢谢