public function toString()
    {
        $result = '';

        if (!empty($this->scheme)) {
            $result.= $this->scheme . ':';
        }

        if (!empty($this->authority)) {
            $result.= '//' . $this->authority;
        }

        $result.= $this->path;

        if (!empty($this->query)) {
            $result.= '?' . $this->query;
        }

        if (!empty($this->fragment)) {
            $result.= '#' . $this->fragment;
        }

        return $result;
    }
public function toString()
    {
        $result = '';

        if (!empty($this->scheme)) {
            $result.= $this->scheme . ':';
        }

        if (!empty($this->authority)) {
            $result.= '//' . $this->authority;
        }

        $result.= $this->path;

        if (!empty($this->query)) {
            $result.= '?' . $this->query;
        }

        if (!empty($this->fragment)) {
            $result.= '#' . $this->fragment;
        }

        return $result;
    }
public function toString ( ) { $ result = '' ; if ( ! empty ( $ this -> scheme ) ) { $ result .= $ this -> scheme . ':' ; } if ( ! empty ( $ this -> authority ) ) { $ result .= '//' . $ this -> authority ; } $ result .= $ this -> path ; if ( ! empty ( $ this -> query ) ) { $ result .= '?' . $ this -> query ; } if ( ! empty ( $ this -> fragment ) ) { $ result .= '#' . $ this -> fragment ; } return $ result ; }
Returns the string representation of the URI

@see http://tools.ietf.org/html/rfc3986#section-5.3
@return string
Returns the string representation of the URI