如何把这段url 转换成应格式数组?
程序员文章站
2022-06-15 08:15:35
...
fid=8&type=1&hot=2&other=6&page=3
Array
(
[fid] => 8
[type] => 1
[hot] => 2
[other] => 6
[page] => 3
)
(
[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
(
[fid] => 8
[type] => 1
[hot] => 2
[other] => 6
[page] => 3
)
谢谢版主,我还不知道有这个函数
上一篇: Intel正式宣布首款QLC SSD:写入寿命堪忧
下一篇: 那些年,阿里巴巴和腾讯共同布局的往事
推荐阅读