📜  php 迭代文件夹 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:53:47.691000             🧑  作者: Mango

代码示例2
if ($handle = opendir('.')) {

    while (false !== ($entry = readdir($handle))) {

        if ($entry != "." && $entry != "..") {

            echo "$entry\n";
        }
    }

    closedir($handle);
}