PHP Velho Oeste 2024

HttpQueryString クラス

(PECL pecl_http >= 0.22.0)

クラス概要

HttpQueryString implements ArrayAccess , Serializable {
final public __construct ([ bool $global = true [, mixed $add ]] )
public mixed get ([ string $key [, mixed $type = 0 [, mixed $defval = NULL [, bool $delete = false ]]]] )
public HttpQueryString mod ( mixed $params )
public string set ( mixed $params )
static public HttpQueryString singleton ([ bool $global = true ] )
public array toArray ( void )
public string toString ( void )
public bool xlate ( string $ie , string $oe )
}

クラスのメンバ

プロパティ

インスタンスプロパティ
アクセス範囲 名前 説明
private array queryArray クエリパラメータ
private string queryString シリアライズしたクエリパラメータ
静的なプロパティ
アクセス範囲 名前 説明
private array instance シングルトン

定義済み定数

名前 説明
int TYPE_BOOL クエリパラメータを bool 型で取得する
int TYPE_INT クエリパラメータを int 型で取得する
int TYPE_FLOAT クエリパラメータを float 型で取得する
int TYPE_STRING クエリパラメータを string 型で取得する
int TYPE_ARRAY クエリパラメータを array 型で取得する
int TYPE_OBJECT クエリパラメータを object 型で取得する

目次

add a note add a note

User Contributed Notes 1 note

up
0
Anonymous
13 years ago
This may sound obvious but just a reminder: this object only works with parameters submitted via GET method. Variables submitted via POST will not be parsed by this object.
To Top