(PECL pecl_http >= 0.22.0)

HttpQueryString::getGet the query string or a part thereof


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

Get the query string or a part thereof



Key of the query string parameter to retrieve


Variable type to enforce for the returned value

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


Default value if key does not exist


Whether to remove key from the query string

Значення, що повертаються

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

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top