Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

PHP rmdir() Function

PHP rmdir() Function


PHP Filesystem Reference Manual Complete PHP Filesystem Reference Manual


Definition and Usage

The rmdir() function removes an empty directory.

Returns TRUE on success, or FALSE on failure.

Syntax

rmdir(dir,context)

Parameters Description
dir Required. Specifies the directory to remove.
context Optional. Specifies the context of the file handle. A context is a set of options that can modify the behavior of a stream.

Example


PHP Filesystem Reference Manual Complete PHP Filesystem Reference Manual