function http_build_query
Generates URL-encoded query string.
This shim exists to make Guzzle 6 PHP 8.1 compatible.
@link https://php.net/manual/en/function.http-build-query.php
Parameters
object|array $data: May be an array or object containing properties.
string|null $numeric_prefix: (optional) 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.
string|null $arg_separator [optional] <p>: (optional) arg_separator.output is used to separate arguments, unless this parameter is specified, and is then used.
int $encoding_type: (optional) By default, PHP_QUERY_RFC1738.
Return value
string A URL-encoded string.
File
-
core/
includes/ guzzle_php81_shim.php, line 29
Namespace
GuzzleHttpCode
function http_build_query($data, $numeric_prefix = '', $arg_separator = '&', $encoding_type = \PHP_QUERY_RFC1738) {
return \http_build_query($data, is_null($numeric_prefix) ? '' : $numeric_prefix, $arg_separator, $encoding_type);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.