时间:2021-07-01 10:21:17 帮助过:29人阅读
输出结果:
代码如下:
Array
(
[0] => Array
(
[volume] => 98
[edition] => 2
)
[1] => Array
(
[volume] => 86
[edition] => 1
)
[2] => Array
(
[volume] => 86
[edition] => 6
)
[3] => Array
(
[volume] => 85
[edition] => 6
)
[4] => Array
(
[volume] => 67
[edition] => 2
)
[5] => Array
(
[volume] => 67
[edition] => 7
)
)
说明:
array_multisort函数的参数非常灵活,大家可以参照php手册中的说明,深入研究下。
http://www.bkjia.com/PHPjc/621678.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/621678.htmlTechArticle本文介绍下,php中使用array_multisort函数进行二维数组排序的例子,有需要的朋友,参考下吧。继上一篇文章:PHP二维数组排序自定义函数,...