PHP算法 | 文件夹遍历

";
                        echo '' . str_repeat("--", $level) . $subPath . '';
                        self::allFile($subPath, $level++);
                    } else {
                        echo "
";
                        echo str_repeat("--", $level) . $subPath;
                    }
                }
            }
        }
    } else {
        echo "{$path} is not a available dir";
    }
}

 

你可能感兴趣的:(最好的语言PHP,算法,php)