array_map('unlink', glob(TEMP_PATH . '/*.php')); rmdir(TEMP_PATH); 转载于:https://www.cnblogs.com/F4natasy/p/9755881.html