http_build_query
laravel/framework
Supported Versions: PHP 5, PHP 7, PHP 8
Generate URL-encoded query string
http_build_query
(
array
|
object $data
,
string $numeric_prefix
=
""
,
?
string $arg_separator
=
null
,
int $encoding_type
=
PHP_QUERY_RFC1738
):
string
public static function
query
(
$array
)
{
return
http_build_query
(
$array
,
''
,
'&'
,
PHP_QUERY_RFC3986
);
}
src/Illuminate/Collections/Arr.php