使用过的,最简洁的代码//递归创建目录 function mkd($dir) { return is_dir($dir) or mkd(dirname($dir)) and mkdir($dir, 0777); } Last modification:April 4th, 2019 at 11:45 am © The copyright belongs to the author