PHP rmdir() Function
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
Complete PHP Filesystem Reference Manual