because manipulating urls is non-trivial, and terribly common. PHP5 onward offers http://php.net/http_build_query which will do some of this
php4/5 mixed parse_url ( string $url [, int $component] )
145950 f00li5h> you need to do both htmlspecialchars and urlencode
<?php
class URI {
var $gets;
var $parts = Array();
function URI($url){
}
/**
* @desc stringify this url
* @param bool $php_mode - use php's odd foo[] and foo[bar] type get params
*/
function __toString($php_mode = 1){
}
function get_host(){ }
function set_host($new_host){ }
function add_get($name, $value){
}
function remove_get($name, $value){
}
}
class URI_http {
}