Opens in a new tab
A picture of Jeff Brigman
I CODE TODAY FOR
A BETTER TOMORROW

Glossary Term

http_build_query()

3 tags 1 category

http_build_query() — Generate URL-encoded query string.

http_build_query() — Generates a URL-encoded query string from the associative (or indexed) array provided.

Inputs: data: May be an array or object containing properties. If data is an array, it may be a simple one-dimensional structure, or an array of arrays (which 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: The argument separator. If not set or null, arg_separator.output is used to separate arguments. encoding_type: By default, PHP_QUERY_RFC1738. If encoding_type is PHP_QUERY_RFC1738, then encoding is performed per RFC 1738 and the application/x-www-form-urlencoded media type, which implies that spaces are encoded as plus (+) signs.

Returns: Returns a URL-encoded string.

Term Connections

Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.

Loading term connections…