Dutch PHP Conference 2019

Yaf_Response_Abstract::clearBody

(Yaf >=1.0.0)

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

说明

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

清除已经设置的响应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

返回值

参见

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top