rewinddir
(PHP 4, PHP 5, PHP 7, PHP 8)
rewinddir — Rewind directory handle
Description
Resets the directory stream indicated by dir_handle
to the beginning of the directory.
Parameters
dir_handle
-
A directory handle resource previously opened
with opendir().
If dir_handle is null the last handle opened
using opendir() will be used.
Return Values
No value is returned.
Examples
For a complete example refer to the opendir()
documentation.
See Also
- opendir() - Open directory handle
- readdir() - Read entry from directory handle
- closedir() - Close directory handle
- dir() - Return an instance of the Directory class
- is_dir() - Tells whether the filename is a directory
- glob() - Find pathnames matching a pattern
- scandir() - List files and directories inside the specified path