标签:style class blog code http color
目录迭代器
$dir = new DirectoryIterator(dirname(__FILE__)); foreach ($dir as $fileinfo) { if (!$fileinfo->isDot()) { echo $fileinfo->getFilename().‘<br />‘; } }
输出当前非dot的所有目录名称和文件名
http://www.php.net/manual/en/directoryiterator.construct.php
DirectoryIterator,布布扣,bubuko.com
标签:style class blog code http color
原文地址:http://www.cnblogs.com/yahoo85/p/3805725.html