剖析 query 字串成变数。
语法: void parse_str(string str);
传回值: 无
函式种类: 资料处理
本函式可将浏览器传回的 GET 方法的 QUERY_STRING 字串剖析。传回的变数名及值就依 QUERY_STRING 的名称及值。
<?php$str = "first=value&second[]=this+works&second[]=another";parse_str($str);echo $first; // 显示出 "value" 字串echo $second[0]; // 显示 "this works" 字串echo $second[1]; // 显示 "another" 字串?>