0
我用于显示通知的最后一个数组是这样的:如何根据notif_date_sort对这个多维数组进行排序?
Array
(
[0] => Array
(
[notification] => 1 new topic posted in : Current Affairs classroom
[on_create] => 12th Aug - 2016 5:20AM
[notif_date_sort] => 2016-08-12 05:20:23
)
[1] => Array
(
[notification] => 8 new topic posted in : GK classroom
[on_create] => 4th Aug - 2016 10:51AM
[notif_date_sort] => 2016-08-04 10:51:56
)
)
我试着像multisort,ksort方法,但没有找到合适的结果。如何基于“notif_date_sort”对数组内的这些元素进行排序?
[?排序与日期时间字符串的数组]的可能的复制(http://stackoverflow.com/questions/9095351/sorting-an-array-with-datetime-strings) – RomanPerekhrest