php多维数组排序算法:
按以下数组顺序排列:
代码:
输出结果:
Array
(
[0] => Array
(
[id] => 2
[data] => b
)
[1] => Array
(
[id] => 1
[data] => a
)
[2] => Array
(
[id] => 3
[data] => c
)
[3] => Array
(
[id] => 4
[data] => d
)
[4] => Array
(
[id] => 5
[data] => e
)
[5] => Array
(
[id] => 6
[data] => f
)
)