2 http_build_url() with parse_url()
10 echo http_build_url(parse_url("http://example.org/orig?q=1#f"),
11 parse_url("https://www.example.com:9999/replaced#n")), "\n";
12 echo http_build_url(("http://example.org/orig?q=1#f"),
13 ("https://www.example.com:9999/replaced#n"), 0, $u), "\n";
19 https://www.example.com:9999/replaced?q=1#n
20 https://www.example.com:9999/replaced?q=1#n
24 [host] => www.example.com