You are here

public function Message::toString in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/zendframework/zend-stdlib/src/Message.php \Zend\Stdlib\Message::toString()

Return value

string

File

vendor/zendframework/zend-stdlib/src/Message.php, line 105

Class

Message

Namespace

Zend\Stdlib

Code

public function toString() {
  $request = '';
  foreach ($this
    ->getMetadata() as $key => $value) {
    $request .= sprintf("%s: %s\r\n", (string) $key, (string) $value);
  }
  $request .= "\r\n" . $this
    ->getContent();
  return $request;
}