mkdir如何创建多级目录
1 function create_folders($dir){ 2 return is_dir($dir) or (create_folders(dirname($dir)) and mkdir($dir, 0777)); 3 }
链接:https://mp.weixin.qq.com/s/xbPoq50RMwZngcK1w4bRnQ