public function getHost()
    {
        $host = $this->getServer('HTTP_HOST') ?: $this->getServer('SERVER_NAME') ?: $this->getServer('REMOTE_ADDR');
        return preg_replace('/:\d+$/', '', $host);
    }
public function getHost()
    {
        $host = $this->getServer('HTTP_HOST') ?: $this->getServer('SERVER_NAME') ?: $this->getServer('REMOTE_ADDR');
        return preg_replace('/:\d+$/', '', $host);
    }
public function getHost ( ) { $ host = $ this -> getServer ( 'HTTP_HOST' ) ? : $ this -> getServer ( 'SERVER_NAME' ) ? : $ this -> getServer ( 'REMOTE_ADDR' ) ; return preg_replace ( '/:\d+$/' , '' , $ host ) ; }
Returns the request host

@return string
Returns the request host