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: gzgetss - 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

gzinflate" width="11" height="7"/> <gzgets
Last updated: Fri, 29 Aug 2008

view this page in

gzgetss

(PHP 4, PHP 5)

gzgetss gzファイルへのポインタから1行を得て、HTMLタグを取り除く

説明

string gzgetss ( resource $zp , int $length [, string $allowable_tags ] )

gzgetss()は読み込んだテキストから HTML および PHP タグを全て取り除こうとすることを除いて、 gzgets()と同じです。

パラメータ

zp

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

length

取得するデータ長を指定します。

allowable_tags

このオプションパラメータにより、 取り除かないタグを指定することができます。

返り値

非圧縮かつタグが取り除かれた文字列、もしくはエラー時に FALSE

変更履歴

バージョン 説明
3.0.13 と 4.0.0 allowable_tags が追加されました。

例1 gzgetss() の例

<?php
$handle 
gzopen('somefile.gz''r');
while (!
gzeof($handle)) {
   
$buffer gzgetss($handle4096);
   echo 
$buffer;
}
gzclose($handle);
?>



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

gzinflate" width="11" height="7"/> <gzgets
Last updated: Fri, 29 Aug 2008
 
 
show source | credits | sitemap | contact | advertising | mirror sites