PHP Manual
Prev |  | Next

# gzrewind

(PHP 3 <= 3.0.18, PHP 4 >= 4.0.0)

gzrewind -- Rewind the position of a gz-file pointer

## Description

``int gzrewind` (int zp)`

Sets the file position indicator for zp to the beginning of the file stream.

If an error occurs, returns 0.

The file pointer must be valid, and must point to a file successfully opened by gzopen().

See also gzseek() and gztell().

Prev | Home | Next
gzread | Up | gzseek