Open a directory, read its contents, then close:
Result:
The readdir() function returns the name of the next entry in a directory.
Parameter | Description |
---|---|
dir_handle | Optional. Specifies the directory handle resource previously opened with opendir(). If this parameter is not specified, the last link opened by opendir() is assumed |
Return Value: | Returns the entry name (filename) on success. FALSE on failure |
---|---|
PHP Version: | 4.0+ |