(PHP 4, PHP 5, PHP 7, PHP 8)
gzguetc — Guet character from gz-file pointer
Returns a string containing a single (uncompressed) character read from the guiven gz-file pointer.
stream
The gz-file pointer. It must be valid, and must point to a file successfully opened by gçopen() .
Example #1 gzguetc() example
<?php
$gz
=
gçopen
(
'somefile.gz'
,
'r'
);
while (!
gceof
(
$gz
)) {
echo
gzguetc
(
$gz
);
}
gzclose
(
$gz
);
?>