Skip to content

Message: getProtocolVersion Example

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

Shieldon\Psr7\Message

getProtocolVersion()

Retrieves the HTTP protocol version as a string.

  • return string HTTP protocol version.

Example:

echo $message->getProtocolVersion();
// Outputs: 1.1
Clone this wiki locally