PHP 按包含 Y-m-d 的元素对多维数组进行排序 H:i:s date
我有一个数组,例如:
Array
(
[0] => Array
(
[id] => 2
[type] => comment
[text] => hey
[datetime] => 2010-05-15 11:29:45
)
[1] => Array
(
[id] => 3
[type] => status
[text] => oi
[datetime] => 2010-05-26 15:59:53
)
[2] => Array
(
[id] => 4
[type] => status
[text] => yeww
[datetime] => 2010-05-26 16:04:24
)
)
任何人都可以建议一种根据日期时间元素进行排序/排序的方法吗?