私は次のURLを持っています:
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]
か?