Home > PHP > Function > Zlib > gzrewind()

gzrewind()

gzrewind - Rewind the position of a gz-file pointer

Syntax

bool gzrewind (resource $zp)

Arguments

  • zp - The gz-file pointer. It must be valid, and must point to a file successfully opened by gzopen().

Description

Sets the file position indicator of the given gz-file pointer to the beginning of the file stream.

Version

PHP 4, 5

Return value

Returns TRUE on success or FALSE on failure.