Yaf_Response_Abstract::response
(Yaf >=1.0.0)
Yaf_Response_Abstract::response — send response
说明
public Yaf_Response_Abstract::response(): void
send response
参数
此函数没有参数。
返回值
范例
示例 #1 Yaf_Response_Abstract::response()example
<?php
$response = new Yaf_Response_Http();
$response->setBody("Hello")->setBody(" World", "footer");
$response->response();
?>
以上例程的输出类似于:
Hello World
参见
- Yaf_Response_Abstract::setBody() - 设置响应的Body
- Yaf_Response_Abstract::clearBody() - 清除已经设置的响应body

User Contributed Notes
There are no user contributed notes for this page.
备份地址:http://www.lvesu.com/blog/php/yaf-response-abstract.response.php