$dir=dir("文件夹的路径"); while($file=$dir->read()) { if($file<>"." and $file<>"..") { if(is_dir($file)) { continue; } if(is_file($file)) { //是文件的话,具体的处理就可能你的需要了啊 } } }
21,886
社区成员
140,364
社区内容
加载中
试试用AI创作助手写篇文章吧