(Yaf >=1.0.0)
Yaf_Response_Abstract::appendBody — Append to the response body
$body, string $key = ?): Yaf_Response_Abstract|false|nullAppend to the response body
bodyThe content string.
keythe content key. If not specified, Yaf_Response_Abstract::DEFAULT_BODY will be used.
Returns the response object itself on success, or false on failure.
Example #1 Yaf_Response_Abstract::appendBody() example
<?php
$response = new Yaf_Response_Http();
$response->setBody("Hello")->appendBody(" World");
echo $response;
?>The above example will output something similar to:
Hello World