Horde_Browser::getHTTPProtocol PHP Метод

getHTTPProtocol() публичный Метод

Returns the server protocol in use on the current server.
public getHTTPProtocol ( ) : string
Результат 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;
    }