Be careful with this example. if gzopen doesn't return a valid handler, gzeof will do a nice loop.
(PHP 4, PHP 5)
gzeof — آزمایش EOF در اشارهگر gz-file
آزمایش اشارهگر فایل GZ داده شده برای EOF.
بازگرداندن TRUE اگر اشارهگر gz-file در EOF باشد یا خطا رخ دهد; در غیر این صورت بازگرداندن FALSE.
Example #1 مثال gzeof()
<?php
$gz = gzopen('somefile.gz', 'r');
while (!gzeof($gz)) {
echo gzgetc($gz);
}
gzclose($gz);
?>
Be careful with this example. if gzopen doesn't return a valid handler, gzeof will do a nice loop.