新闻中心
这里有您想知道的互联网营销解决方案
PHP封装一个遍历文件夹下面得所有的文件的类
//遍历文件夹下面所有的文件 function my_scandir($dir) { $files = array(); if ($handle = opendir($dir)){ while (($files = readdir($handle)) !== false){ if ($files != "." && $files != "."){ $files[$files] = my_scandir($dir . "/" . $files); } else { $files[] = $files; } } } closedir($handle); return $files; }
分享题目:PHP封装一个遍历文件夹下面得所有的文件的类
文章源于:http://scpingwu.com/article/jcoisj.html