我有以下网址:
http ://sub.mysite.com/store/?store=Fine+Ting&storeid=3726&test1=value1&test2=value2
使用print_r(parse_url($url))
给了我这个:
Array (
[scheme] => http
[host] => sub.mysite.com
[path] => /store/
[query] => store=Fine+Ting&
[fragment] => 038;storeid=3726&test1=value1&test2=value2
)
根据文档,我应该只fragment
在井号 # 之后得到。
那么为什么parse_url
返回片段呢?那不应该在[query]
吗?