Home > PHP > Function > > HttpMessage::toString()

HttpMessage::toString()

HttpMessage::toString - Get string representation

Syntax

public HttpMessage::toString (bool $include_parent)

Arguments

  • include_parent - specifies whether the returned string should also contain any parent messages

Description

Get the string representation of the Message.

Version

PHP PECL pecl_http >= 0.10.0

Return value

Returns the message as string.