vendor/zendframework/zend-diactoros/src/functionsmarshal_protocol_version_from_sapi.php

Functions

marshalProtocolVersionFromSapi()

marshalProtocolVersionFromSapi(array  $server) : string

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

Parameters

array $server

Throws

\UnexpectedValueException

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

Returns

string