gzeof
(PHP 4, PHP 5, PHP 7, PHP 8)
gzeof — gz ファイルポインタが EOF かどうか調べる
例
例1 gzeof() の例
<?php
$gz = gzopen('somefile.gz', 'r');
while (!gzeof($gz)) {
echo gzgetc($gz);
}
gzclose($gz);
?>
+add a note
User Contributed Notes 2 notes
thomas at poindessous dot com ¶
17 years ago
Be careful with this example. if gzopen doesn't return a valid handler, gzeof will do a nice loop.
↑ and ↓ to navigate •
Enter to select •
Esc to close
Press Enter without
selection to search using Google