Query: gzfile
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
GZFILE(3) 1 GZFILE(3) gzfile - Read entire gz-file into an arraySYNOPSISarray gzfile (string $filename, [int $use_include_path])DESCRIPTIONThis function is identical to readgzfile(3), except that it returns the file in an array.PARAMETERSo $filename - The file name. o $use_include_path - You can set this optional parameter to 1, if you want to search for the file in the include_path too.RETURN VALUESAn array containing the file, one line per cell.EXAMPLESExample #1 gzfile(3) example <?php $lines = gzfile('somefile.gz'); foreach ($lines as $line) { echo $line; } ?>SEE ALSOreadgzfile(3), gzopen(3). PHP Documentation Group GZFILE(3)