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

search for in the

 
Last updated: Fri, 29 Aug 2008

view this page in

HttpQueryString::get

(PECL pecl_http:0.22.0-1.5.5)

HttpQueryString::getクエリ文字列 (の一部) を取得する

説明

public mixed HttpQueryString::get ([ string $key [, mixed $type = 0 [, mixed $defval = NULL [, bool $delete = FALSE ]]]] )

クエリ文字列 (の一部) を取得します。

パラメータ type には HttpQueryString::TYPE_* 定数のいずれか、 あるいは型を省略したものを指定します。例えば "b" は bool、"i" は int、"f" は float、 "s" は string、"a" は array そして "o" は stdClass オブジェクトです。

パラメータ

key

取得するクエリ文字列パラメータのキー。

type

変数の型。

defval

キーが存在しない場合のデフォルトの値。

delete

クエリ文字列からキー・値の組み合わせを削除するかどうか。

返り値

クエリ文字列パラメータの値を返します。キーが指定されない場合は、 クエリ文字列全体を返します。キーが存在しない場合は defval を返します。



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

 
Last updated: Fri, 29 Aug 2008
 
 
show source | credits | sitemap | contact | advertising | mirror sites