Skip to content

Message: getProtocolVersion Example

Terry L edited this page Jun 20, 2020 · 5 revisions
Clone this wiki locally

Shieldon\Psr7\Message

getProtocolVersion()

Retrieves the HTTP protocol version as a string.

  • return string HTTP protocol version.

Example:

echo $message->getProtocolVersion();
// Outputs: 1.1