PHP.nl

readdir

readdir

Read entry from directory handle

 **readdir**  $dir_handle

Returns the name of the next entry in the directory. The entries are returned in the order in which they are stored by the filesystem.

dir_handle A directory handle previously opened with . If is null the last handle opened using will be used. resource``opendir``dir_handle``opendir

Returns the entry name on success,return.falseforfailure.

For a complete example refer to the documentation. opendir

opendir``rewinddir``closedir``dir``is_dir``glob``scandir