public function url() {
        // TODO: class for url
        if ($this->url === null) {
            $this->url = parse_url(
                'http' .
                (isset($serverVariables['HTTPS']) ? 's' : '') .
                '://' .
                $serverVariables['HTTP_HOST'] .
                $serverVariables['REQUEST_URI']
            );
        }

        return $this->url;
    }
public function url() {
        // TODO: class for url
        if ($this->url === null) {
            $this->url = parse_url(
                'http' .
                (isset($serverVariables['HTTPS']) ? 's' : '') .
                '://' .
                $serverVariables['HTTP_HOST'] .
                $serverVariables['REQUEST_URI']
            );
        }

        return $this->url;
    }
public function url ( ) { // TODO: class for url if ( $ this -> url === null ) { $ this -> url = parse_url ( 'http' . ( isset ( $ serverVariables [ 'HTTPS' ] ) ? 's' : '' ) . '://' . $ serverVariables [ 'HTTP_HOST' ] . $ serverVariables [ 'REQUEST_URI' ] ) ; } return $ this -> url ; }
Returns URL components.

Potential keys within this array are:
- scheme - e.g. http
- host
- port
- user
- pass
- path
- query - after the question mark ?
- fragment - after the hashmark #

@return array
Returns URL components .