PHP URL Parsing
URL: https://subdomain.domain.topleveldomain:8080/sub_directory/another_sub_directory/yet_another_sub_directory/?value=42&yet_another_value=123#whereami

parse_url(https://subdomain.domain.topleveldomain:8080/sub_directory/another_sub_directory/yet_another_sub_directory/?value=42&yet_another_value=123#whereami)
print_r($URL)
Array
(
    [scheme] => https
    [host] => subdomain.domain.topleveldomain
    [port] => 8080
    [path] => /sub_directory/another_sub_directory/yet_another_sub_directory/
    [query] => value=42&yet_another_value=123
    [fragment] => whereami
)

1. $URL['scheme'] = https
2. $URL['host'] = subdomain.domain.topleveldomain
3. $URL['port'] = 8080
4. $URL['path'] = /sub_directory/another_sub_directory/yet_another_sub_directory/
5. $URL['query'] = value=42&yet_another_value=123
6. $URL['fragment'] = whereami