10 $u = "http://user:pass@www.example.com:8080/path/file.ext".
11 "?foo=bar&more[]=1&more[]=2#hash";
13 var_dump($u === (string) new http\Url($u));
15 $url = new http\Url($u,
16 array("path" => "changed", "query" => "foo=&added=this"),
18 http\Url::JOIN_QUERY |
19 http\Url::STRIP_AUTH |
20 http\Url::STRIP_FRAGMENT
23 var_dump($url->scheme);
29 var_dump($url->query);
30 var_dump($url->fragment);
40 string(15) "www.example.com"
42 string(13) "/path/changed"
43 string(38) "more%5B0%5D=1&more%5B1%5D=2&added=this"