rmdir("./uploads/temp/".$user."/");
我希望在我的 PHP 脚本中删除的目录中有很多文件,但是我无法先 unlink() 文件。有没有办法让我一起做
unlink(* FROM (dir=)) // don't downvote the long shot
// delete all files from the dir first
// then delete that dir
引用目录必须为空才能删除它,请参阅php.net/manual/en/function.rmdir.php