PHP Doku:: Get (part of) query string - function.httpquerystring-get.html

Verlauf / Chronik / History: (1) anzeigen

Sie sind hier:
Doku-StartseitePHP-HandbuchFunktionsreferenzSonstige DiensteHTTPThe HttpQueryString classHttpQueryString::get

Ein Service von Reinhard Neidl - Webprogrammierung.

The HttpQueryString class

<<HttpQueryString::__construct

HttpQueryString::mod>>

HttpQueryString::get

(PECL pecl_http >= 0.22.0)

HttpQueryString::getGet (part of) query string

Beschreibung

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.

Parameter-Liste

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

Rückgabewerte

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.


Keine BenutzerBeiträge.
- Beiträge aktualisieren...



PHP Powered Diese Seite bei php.net
The PHP manual text and comments are covered by the Creative Commons Attribution 3.0 License © the PHP Documentation Group - Impressum - mail("TO:Reinhard Neidl",...)