The rmdir() function deletes empty directories.
If successful, the function returns TRUE. If it fails, returns FALSE.
rmdir(dir,context)
parameter | describe |
---|---|
dir | Required. Specifies the directory to be deleted. |
context | Optional. Specifies the environment for a file handle. context is a set of options that can modify the behavior of the stream. |
<?php$path = "images";if(!rmdir($path)) { echo ("Could not remove $path"); }?>