PHP Function Reference

PHP streamWrapper dir_rewinddir() Method



The PHP streamWrapper::dir_rewinddir() method rewinds directory handle. This method is called in response to rewinddir() function.

This method resets the output generated by streamWrapper::dir_readdir(). This means that the next call to streamWrapper::dir_readdir() returns the first entry in the location returned by streamWrapper::dir_opendir().

Syntax

public streamWrapper::dir_rewinddir()

Parameters

No parameter is required.

Return Value

Returns true on success or false on failure.


❮ PHP Streams Reference