PHP 手冊
上一頁 |  | 下一頁

# gzgets

(PHP 3, PHP 4 , PHP 5)

gzgets -- Get line from file pointer

## Description

string gzgets ( resource zp, int length)

Returns a (uncompressed) string of up to length - 1 bytes read from the file pointed to by fp. Reading ends when length - 1 bytes have been read, on a newline, or on EOF (whichever comes first).

If an error occurs, returns `FALSE`.

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

See also gzopen(), gzgetc(), and fgets().

上一頁 | 最開頭 | 下一頁
gzgetc | 上一層 | gzgetss