这是我试图按日期排序的数组。
Array (
[0] => 2013 Aug 01
[1] => 2013 Aug 02
[2] => 2013 Aug 05
[3] => 2013 Aug 06
[4] => 2013 Aug 07
[5] => 2013 Aug 08
[6] => 2013 Aug 09
[7] => 2013 Jul 11
[8] => 2013 Jul 12
[9] => 2013 Aug 12
[10] => 2013 Aug 13
[11] => 2013 Aug 14
[12] => 2013 Jul 15
[13] => 2013 Aug 15
[14] => 2013 Jul 16
[15] => 2013 Jul 17
[16] => 2013 Jul 18
[17] => 2013 Jul 19
[18] => 2013 Aug 19
[19] => 2013 Aug 20
[20] => 2013 Jul 22
[21] => 2013 Aug 22
[22] => 2013 Jul 23
[23] => 2013 Aug 23
[24] => 2013 Jul 24
[25] => 2013 Jul 25
[26] => 2013 Jul 26
[27] => 2013 Jul 29
[28] => 2013 Jul 30
[29] => 2013 Aug 30
)
我尝试了很多方法,但似乎只按天值排序,月份被忽略。
使用strtotime()
. 我什至尝试删除所有字符串,只使用一个像 01082013 这样的整数,但它仍然只查看要排序的日期值。
提前致谢。
我尝试了这些方法,但只按天值排序
链接到我用来让它工作的代码http://pastebin.com/Hr0rhUzn