PHP function rewind()

Availability in PHP 4.0

Rewind the position of a file pointer

Parameters

Parameter Data type Default value Note
$handle resource not The file pointer must be valid, and must point to a file successfully opened by fopen.

Return values

bool

Returns true on success, otherwise false on failure.

Other resources

Official documentation for rewind

Newsletter

Nejlepsi tipy a triky o PHP do Vaseho e-mailu. Clanky a novinky nejen ze sveta PHP a programovani.