Yaf_Response_Abstract::clearBody

(Yaf >=1.0.0)

Yaf_Response_Abstract::clearBody清除已经设置的响应body

说明

public Yaf_Response_Abstract::clearBody ([ string $key ] ) : bool

清除已经设置的响应body

参数

key

the content key, if you don't specific, then all contents will be cleared. 如果你没选择具体清除哪个key所对应的内容,那所有内容将被清除

Note:

this parameter is introduced as of 2.2.0

返回值

参见

User Contributed Notes

There are no user contributed notes for this page.