如何按 DESC 顺序对内部数组键进行排序?
我可以按 DESC 顺序对 11、12 进行排序,arsort()
但内部数组保持不变。我试过了array_multisort()
,usort()
还有其他人,但没有运气。
Array
(
[11] => Array
(
[4] => apr11timetable.php
[8] => aug11timetable.php
[6] => jun11timetable.php
[11] => nov11timetable.php
[10] => oct11timetable.php
)
[12] => Array
(
[4] => apr12timetable.php
[8] => aug12timetable.php
[2] => feb12timetable.php
[6] => jun12timetable.php
[10] => oct12timetable.php
)
)