Home >> PHP >> rmdir() function in PHP

rmdir() function in PHP

The rmdir() function used to remove a folder or directory.

Example

if(is_dir("abc")){

      rmdir("abc");

      echo "folder has been destroy";

}else{

     echo "folder is not exits";

}

Post Your Comment

Next Questions
is_dir() function
file_get_contents() function
fgets() function
basename() function
chgrp() function
chmod() function
chown() function
clearstatcache() function
copy() function
delete() function
dirname() function
disk_free_space() function
disk_total_space() function
diskfreespace() function
feof() function
fflush() function
fgetc() function
fgetss() function
file_put_contents() function
fileatime() function
filectime() function
filemtime() function
fileowner() function
fileperms() function
filesize() function

Copyright ©2022 coderraj.com. All Rights Reserved.