您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

怎么把这段url 转换成应格式数组

2024/3/4 11:18:04发布19次查看
如何把这段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
(
    [fid] => 8
    [type] => 1
    [hot] => 2
    [other] => 6
    [page] => 3
)
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product