Manuál PHP | ||
---|---|---|
PÅ™edcházejÃcà | DalÅ¡Ã |
http_build_query
Popis
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.
Seznam parametrů
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.
PÅ™Ãklady
PÅ™Ãklad 2. http_build_query() with numerically index elements.
Výše uvedený pÅ™Ãklad vypÃÅ¡e:
|
PÅ™Ãklad 3. http_build_query() with complex arrays
this will output : (word wrapped for readability)
|
PÅ™edcházejÃcà | Domů | DalÅ¡Ã |
get_meta_tags | Nahoru< |