php 里面如何遍历目录,php如何遍历目录,php非递归算法遍历目录的例子
function myscandir($pathname){foreach( glob($pathname) as $filename ){if(is_dir($filename)){myscandir($filename.'/*');}else{echo $filename.'';}}}myscandir('D:/wamp/www/exe1/*');?>2. 方法2function mys...