The HttpQueryString class
php 手册 | 脚本学堂 | 脚本编程 | 网站编程 | 系统管理 | 服务器配置 | 数据库管理 | Php教程 | python教程 | 正则表达式 | 批处理脚本 | Centos教程 | Linux基础教程

HttpQueryString::get

(PECL pecl_http >= 0.22.0)

HttpQueryString::getGet (part of) query string

说明

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

Get (part of) the query string.

The type parameter is either one of the HttpQueryString::TYPE_* constants or a type abbreviation like "b" for bool, "i" for int, "f" for float, "s" for string, "a" for array and "o" for a stdClass object.

参数

key

key of the query string param to retrieve

type

which variable type to enforce

defval

default value if key does not exist

delete

whether to remove the key/value pair from the query string

返回值

Returns the value of the query string param or the whole query string if no key was specified on success or defval if key does not exist.


The HttpQueryString class
php 手册 | 脚本学堂 | 脚本编程 | 网站编程 | 系统管理 | 服务器配置 | 数据库管理 | Php教程 | python教程 | 正则表达式 | 批处理脚本 | Centos教程 | Linux基础教程