按照时间倒叙排列:
$items = glob('*.zip');
array_multisort(array_map('filemtime', $items), SORT_NUMERIC, SORT_DESC, $items);
本文介绍了一种使用PHP编程语言按时间倒序排列文件的方法,通过glob函数获取所有.zip文件,然后利用array_multisort函数结合filemtime进行排序。
按照时间倒叙排列:
$items = glob('*.zip');
array_multisort(array_map('filemtime', $items), SORT_NUMERIC, SORT_DESC, $items);

被折叠的 条评论
为什么被折叠?