Description
bool rmdir(string $directory
, resourcenull $context
= null
)
Parameters
-
directory
-
Path to the directory.
-
context
-
A context stream
resource.
Return Values
Returns true
on success or false
on failure.
Examples
Example #1 rmdir example
<?php
if (!is_dir('examples')) {
mkdir('examples');
}
rmdir('examples');
?>