Heim > Artikel > Backend-Entwicklung > 怎么把这段url 转换成应格式数组
如何把这段url 转换成应格式数组?
fid=8&type=1&hot=2&other=6&page=3
Array
(
[fid] => 8
[type] => 1
[hot] => 2
[other] => 6
[page] => 3
)
------解决方案--------------------
parse_str('fid=8&type=1&hot=2&other=6&page=3', $a);<br />print_r($a);Array