PHP rewinddir() Function

PHP Directory Reference : Open a directory, list its files, reset directory handle, list its files once again, then close

Definition and Usage

The rewinddir() function resets the directory handle created by opendir().

Syntax

rewinddir(dir)

Parameter Values

Parameter Description
dir Optional. Specifies the directory handle resource previously opened with opendir(). If this parameter is not specified, the last link opened by opendir() is assumed

Technical Details

Return Value: NULL on success, FALSE on failure
PHP Version: 4.0+

❮ PHP Directory Reference