unlink
unlink
Deletes a file
bool **unlink** string $filename $context
Deletes . Similar to the Unix C unlink()
function. An level error will be generated on
failure.
filename``E_WARNING
filenamePath to the file.
If the file is a symlink, the symlink will be deleted. On Windows, to delete
a symlink to a directory, has to be used instead.
`rmdir`
context
return.success
Voorbeeld: Basic usage
<?php
$fh = fopen('test.html', 'a');
fwrite($fh, '<h1>Hello world!</h1>');
fclose($fh);
unlink('test.html');
?>
rmdir