PHP rmdir() Function – Remove Directory

PHP rmdir() Function

Remove Directory in PHP

The rmdir() function is used to remove a directory from computer system.

rmdir() function syntax

<?php

rmdir(“directory_name”);

?>

rmdir() function Example

Above example we use rmdir() function to remove directory named with “meera” from computer system at php script folder.

PHP form script example to remove directory

The output of remove directory using rmdir() php example is:

php directory function

PHP rmdir() function example for remove directory

 

Leave a Reply

Your email address will not be published. Required fields are marked *

7 + 6 =


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">