http_build_query
Opis
string http_build_query ( array formdata [, string numeric_prefix [, string arg_separator]] )Generates a URL-encoded query string from the associative (or indexed) array provided.
Parametry
formdata
May be an array or object containing properties.
The array form may be a simple one-dimensional structure, or an array of arrays (who in turn may contain other arrays).
numeric_prefix
If numeric indices are used in the base array and this parameter is provided, it will be prepended to the numeric index for elements in the base array only.
This is meant to allow for legal variable names when the data is decoded by PHP or another CGI application later on.
arg_separator
arg_separator.output is used to separate arguments, unless this parameter is specified, and is then used.
Przykłady
Przykład 2. http_build_query() with numerically index elements.
Powyższy przykład wyświetli:
|
Przykład 3. http_build_query() with complex arrays
this will output : (word wrapped for readability)
|
Poprzedni | Spis treści | Następny |
get_meta_tags | Początek rozdziału< |