public getHTTPProtocol ( ) : string | ||
Résultat | 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;
}