PDA

View Full Version : php 如何删除后缀名是.jpg的文件


admin
2015-10-30, 10:05 PM
<?php
$obj = glob("*.jpg");
foreach($obj as $file){
unlink($file);
}
?>