Home >php教程 >PHP源码 >循环创建目录

循环创建目录

PHP中文网
PHP中文网Original
2016-05-23 13:07:451006browse

循环创建目录

function createDir($path){
    if (!file_exists($path)){
        createDir(dirname($path));
        mkdir($path, 0777);
    }
}

                   

以上就是循环创建目录的内容,更多相关内容请关注PHP中文网(www.php.cn)!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:jQuery 正则常见匹配Next article:万能的分页类