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";
}
Coderraj is the global online platform and circle for programmers to learn, communicate, share their knowledge and growth their careers.
Copyright ©2022 coderraj.com. All Rights Reserved.