classes/Url.php
protected function get()
    {
        $url = '';
        if ($this->scheme) {
            $url = $this->scheme . ':';
        }
        if ($this->host) {
            $url .= '//' . $this->authority();
        }
        if ($this->path) {
            $url .= '/' . ltrim($this->path, '/');
        }
        if ($this->query) {
            $url .= '?' . $this->query;
        }
        if ($this->fragment) {
            $url .= '#' . $this->fragment;
        }

        return $url;
    }
protected function get()
    {
        $url = '';
        if ($this->scheme) {
            $url = $this->scheme . ':';
        }
        if ($this->host) {
            $url .= '//' . $this->authority();
        }
        if ($this->path) {
            $url .= '/' . ltrim($this->path, '/');
        }
        if ($this->query) {
            $url .= '?' . $this->query;
        }
        if ($this->fragment) {
            $url .= '#' . $this->fragment;
        }

        return $url;
    }
protected function get ( ) { $ url = '' ; if ( $ this -> scheme ) { $ url = $ this -> scheme . ':' ; } if ( $ this -> host ) { $ url .= '//' . $ this -> authority ( ) ; } if ( $ this -> path ) { $ url .= '/' . ltrim ( $ this -> path , '/' ) ; } if ( $ this -> query ) { $ url .= '?' . $ this -> query ; } if ( $ this -> fragment ) { $ url .= '#' . $ this -> fragment ; } return $ url ; }
Get URL as string

@return string
Get URL as string