Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

PHP rewind() Function

PHP rewind() Function


PHP Filesystem Reference Manual Complete PHP Filesystem Reference Manual


Definition and Usage

The rewind() function rewinds the position of the file pointer to the beginning of the file.

Returns TRUE on success, or FALSE on failure.

Syntax

rewind(file)

Parameters Description
file Required. Specifies the open file.

Example


PHP Filesystem Reference Manual Complete PHP Filesystem Reference Manual