Delicious Bookmark this on Delicious Share on Facebook SlashdotSlashdot It! Digg! Digg



PHP : Function Reference : Zlib Compression Functions : gzgetc

gzgetc

Get character from gz-file pointer (PHP 4, PHP 5)
string gzgetc ( resource zp )

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

Parameters

zp

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

Return Values

The uncompressed character or FALSE on EOF (unlike gzeof()).

Examples

Example 2726. gzgetc() example

<?php
$gz
= gzopen('somefile.gz', 'r');
while (!
gzeof($gz)) {
 echo
gzgetc($gz);
}
gzclose($gz);
?>


See Also
gzopen()
gzgets()

Change Language


Follow Navioo On Twitter
gzclose
gzcompress
gzdecode
gzdeflate
gzencode
gzeof
gzfile
gzgetc
gzgets
gzgetss
gzinflate
gzopen
gzpassthru
gzputs
gzread
gzrewind
gzseek
gztell
gzuncompress
gzwrite
readgzfile
zlib_get_coding_type
eXTReMe Tracker