Documentation

GuzzleHttp

Table of Contents

Functions

http_build_query()  : string
Generates URL-encoded query string.

Functions

http_build_query()

Generates URL-encoded query string.

http_build_query(object|array<string|int, mixed> $data[, string|null $numeric_prefix = '' ][, string|null $arg_separator = '&' ][, int $encoding_type = PHP_QUERY_RFC1738 ]) : string

This shim exists to make Guzzle 6 PHP 8.1 compatible.

Parameters
$data : object|array<string|int, mixed>

May be an array or object containing properties.

$numeric_prefix : string|null = ''

(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.

$arg_separator : string|null = '&'

[optional]

(optional) arg_separator.output is used to separate arguments, unless this parameter is specified, and is then used.

$encoding_type : int = PHP_QUERY_RFC1738

(optional) By default, PHP_QUERY_RFC1738.

Tags
link
https://php.net/manual/en/function.http-build-query.php
Return values
string

A URL-encoded string.


        
On this page

Search results