📅  最后修改于: 2022-03-11 14:53:41.800000             🧑  作者: Mango
$files = glob('path/to/temp/*'); // get all file names
foreach($files as $file){ // iterate files
if(is_file($file)) {
unlink($file); // delete file
}
}