Function parse_query
Parse a query string into an associative array.
If multiple values are found for the same key, the value of that key value
pair will become an array. This function does not parse nested PHP style
arrays into an associative array (e.g., foo[a]=1&foo[b]=2
will be parsed
into ['foo[a]' => '1', 'foo[b]' => '2'])
.
Namespace: GuzzleHttp\Psr7
Deprecated: parse_query will be removed in guzzlehttp/psr7:2.0. Use Query::parse instead.
Located at functions.php
Deprecated: parse_query will be removed in guzzlehttp/psr7:2.0. Use Query::parse instead.
Located at functions.php
Parameters summary
string |
$str |
Query string to parse |
integer|boolean |
$urlEncoding = true |
How the query string is encoded |
Return value summary
array
|
array |