<?php $dir = "./";//目录 if (is_dir($dir)) { if ($dh = opendir($dir)) { $i = 0; while (($file = readdir($dh)) !== false) { if ($file != "." && $file != "..") { $files[$i]["name
PHP读取文件夹目录,按时间排序,大小排序,名字排序
最新推荐文章于 2021-03-31 19:28:04 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)
<?php $dir = "./";//目录 if (is_dir($dir)) { if ($dh = opendir($dir)) { $i = 0; while (($file = readdir($dh)) !== false) { if ($file != "." && $file != "..") { $files[$i]["name