Home > PHP > Function > Zlib > gztell()

gztell()

gztell - Tell gz-file pointer read/write position

Syntax

int gztell (resource $zp)

Arguments

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

Description

Gets the position of the given file pointer; i.e., its offset into the uncompressed file stream.

Version

PHP 4, 5

Return value

The position of the file pointer or FALSE if an error occurs.