正如上面的代码所示,我想在$test这个匿名函数里递归调用它自己,但是我发现在调用后会出现Fatal error:Function name must be a string in/Library/WebServer/Documents/test.php on line 9也就是$test这个变量并不...
你的代码里,递归创建 nested directory的过程 确实很有趣.但为什么不直接mkdir($dir,0777,true)?http://sg2.php.net/mkdirrecursive Allows the creation of nested directories specified in the pathname.试一下是不是这个...