我在 Parse query string into an array 但是,如果查询值包含“&”,那就错了
$url = 'pg_id=2&parent_id=2&document=1&video=D&G';
parse_str($url, $get_array);
print_r($get_array);
输出:
Array
(
"pg_id" => 2
"parent_id" => 2
"document" => 1
"video" => D
"G" =>
)