parse_str ($str, array &$arr = null) //Parses the string into variables
eg:$str = "first=value&arr[]=foo+bar&arr[]=baz";
parse_str($str, $output);
echo $output[‘first‘]; // value
echo $output[‘arr‘][0]; // foo bar
echo $output[‘arr‘][1]; // baz
原文:https://www.cnblogs.com/liqinggai/p/9823278.html