The PHP rmdir() function removes an empty directory.
Output
// removes "javascript" directory
Syntax
rmdir(dir, context)
Parameters
Parameter | Description |
---|---|
dir | Specifies the path to the directory to be removed (required) |
context | Specifies the context of the file handle; context is a set of options that can modify the behavior of a stream |