Parses a query string.
string
$query
the query string to parse
array
an array containing the parsed key-value pairs