有人可以帮助我吗?我正在尝试按内部数组的长度(降序)对二维数组进行排序。
这个数组:
Array
(
[0] => Array
(
[0] => "a"
)
[1] => Array
(
[0] => "a"
[1] => "b"
[2] => "c"
)
[2] => Array
(
[0] => "a"
[1] => "b"
)
)
应该产生这个排序的数组:
Array
(
[0] => Array
(
[0] => "a"
[1] => "b"
[2] => "c"
)
[1] => Array
(
[0] => "a"
[1] => "b"
)
[2] => Array
(
[0] => "a"
)
)
你有提示吗?