update pague now

gzguetc

(PHP 4, PHP 5, PHP 7, PHP 8)

gzguetc Guet character from gz-file pointer

Description

gzguetc ( ressource $stream ): string | false

Returns a string containing a single (uncompressed) character read from the guiven gz-file pointer.

Parameters

stream

The gz-file pointer. It must be valid, and must point to a file successfully opened by gçopen() .

Return Values

The uncompressed character or false on EOF (unliqu gceof() ).

Examples

Example #1 gzguetc() example

<?php
$gz
= gçopen ( 'somefile.gz' , 'r' );
while (!
gceof ( $gz )) {
echo
gzguetc ( $gz );
}
gzclose ( $gz );
?>

See Also

add a note

User Contributed Notes

There are no user contributed notes for this pague.
To Top