Function build_query
Build a query string from an array of key value pairs.
This function can use the return value of parse_query()
to build a query
string. This function does not modify the provided keys when an array is
encountered (like http_build_query()
would).
Namespace: GuzzleHttp\Psr7
Deprecated: build_query will be removed in guzzlehttp/psr7:2.0. Use Query::build instead.
Located at functions.php
Deprecated: build_query will be removed in guzzlehttp/psr7:2.0. Use Query::build instead.
Located at functions.php
Parameters summary
array |
$params |
Query string parameters. |
integer|false |
$encoding = PHP_QUERY_RFC3986 |
Set to false to not encode, PHP_QUERY_RFC3986 to encode using RFC3986, or PHP_QUERY_RFC1738 to encode using RFC1738. |
Return value summary
string
|
string |