Heim >Backend-Entwicklung >PHP-Tutorial >如何把这段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);print_r($a);Array
谢谢版主,我还不知道有这个函数