php字符串

 

 

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
posted @ 2018-10-20 22:25  liqinggai  阅读(153)  评论(0)    收藏  举报