rmdir

(PHP 3 <= 3.0.18, PHP 4 >= 4.0.0)

rmdir -- Removes directory

Description

int rmdir (string dirname)

Attempts to remove the directory named by pathname. The directory must be empty, and the relevant permissions must permit. this.

If an error occurs, returns 0.

See also mkdir().