Horde_Browser::getHTTPProtocol PHP Method

getHTTPProtocol() public method

Returns the server protocol in use on the current server.
public getHTTPProtocol ( ) : string
return string The HTTP server protocol version.
    public function getHTTPProtocol()
    {
        return isset($_SERVER['SERVER_PROTOCOL']) && ($pos = strrpos($_SERVER['SERVER_PROTOCOL'], '/')) ? substr($_SERVER['SERVER_PROTOCOL'], $pos + 1) : null;
    }