GZCLOSE(3) 1 GZCLOSE(3)
gzclose - Close an open gz-file pointer
SYNOPSIS
bool gzclose (resource $zp)
DESCRIPTION
Closes the given gz-file pointer.
PARAMETERS
o $zp
- The gz-file pointer. It must be valid, and must point to a file successfully opened by gzopen(3).
RETURN VALUES
Returns TRUE on success or FALSE on failure.
EXAMPLES
Example #1
gzclose(3) example
<?php
$gz = gzopen('somefile.gz','w9');
gzputs ($gz, 'I was added to somefile.gz');
gzclose($gz);
?>
SEE ALSO
gzopen(3).
PHP Documentation Group GZCLOSE(3)