Fr3nch13/CakePHP Utilities

marshal_protocol_version_from_sapi.php

Table of Contents

Functions

marshalProtocolVersionFromSapi()  : string
Return HTTP protocol version (X.Y) as discovered within a `$_SERVER` array.

Functions

marshalProtocolVersionFromSapi()

Return HTTP protocol version (X.Y) as discovered within a `$_SERVER` array.

marshalProtocolVersionFromSapi(array<string|int, mixed> $server) : string
Parameters
$server : array<string|int, mixed>
Tags
throws
UnrecognizedProtocolVersionException

If the $server['SERVER_PROTOCOL'] value is malformed.

Return values
string

        
On this page

Search results