Syntax for PHP rmdir() Function
bool rmdir(dir_name[,context])
rmdir() function is used to remove the empty directory
On failure it gives the false Boolean value
Source Code of PHP rmdir() Function
<?php
$a=rmdir("upload1");
if($a)
echo "directory is removed ";
else
echo "cannot remove directory ";
?>
Output
directory is removed