我有一个数组如下。我只是想按日期订购它的回声,所以我们在顶部有最近的日期。我不确定是否。php 可以对数组进行排序,并且 b. 它是否可以读取其格式的日期。我可以更改捕获 din 的格式,如果这样会更容易?
Array (
[0] => Array (
[month_year] => September2012
[vimeo_link] => http://vimeo.com/472
)
[1] => Array (
[month_year] => July2012
[vimeo_link] => https://vimeo.com/460
)
[2] => Array (
[month_year] => August2012
[vimeo_link] => https://vimeo.com/490
)
)
foreach($rows as $row){?>
<li><a target="_blank" href="<?php echo $row['vimeo_link'];?>"><?php echo $row['month_year'];?></a></li>
<?php
}?>