(PHP 3, PHP 4 >= 4.0.0)
void rewinddir (resource dir_handle)
void rewinddir
Resets the directory stream indicated by dir_handle to the beginning of the directory.