class Delete{
public $name = 'error.log';
function __destruct(){
if (file_exists($this->name)){
if(unlink($this->name))
echo $this->name . ' delete';
else{
echo "unlink error!";
}
}else{
echo 'file Path does not exist';
}
}
}
$d = new Delete();
echo urlencode(serialize($d));