Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
PHP: gzgetc - Manual
[go: Go Back, main page]

PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

gzgets" width="11" height="7"/> <gzfile
Last updated: Mon, 05 Feb 2007

view this page in

gzgetc

(PHP 4 <= 4.2.3)

gzgetc — gz ファイルへのポインタから文字を得る

説明

string gzgetc ( resource zp )

与えられた gz ファイルポインタから (非圧縮の) 1 文字を読み込み、これを含む 文字列を返します。

パラメータ

zp

gz ファイルポインタを指定します。 これは有効なファイルポインタであり、かつ、 gzopen() によりオープンできたファイルを指している必要があります。

返り値

非圧縮の文字列、もしくは EOF (gzeof() とは異なる) の場合の FALSE

例 2542. gzgetc() の例

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

参考

gzopen()
gzgets()



add a note add a note User Contributed Notes
gzgetc
There are no user contributed notes for this page.

gzgets" width="11" height="7"/> <gzfile
Last updated: Mon, 05 Feb 2007
 
 
show source | credits | sitemap | contact | advertising | mirror sites