Home > PHP > Function > Directories > rewinddir()

rewinddir()

rewinddir - Rewind directory handle

Syntax

rewinddir (resource $dir_handle)

Arguments

  • dir_handle - The directory handle resource previously opened with opendir(). If the directory handle is not specified, the last link opened by opendir() is assumed.

Description

Resets the directory stream indicated by dir_handle to the beginning of the directory.

Version

PHP 4, 5

Return value