Yaf_Response_Abstract::clearBody

(Yaf >=1.0.0)

Yaf_Response_Abstract::clearBody清除已經(jīng)設(shè)置的響應(yīng)body

說明

public Yaf_Response_Abstract::clearBody(string $key = ?): bool

清除已經(jīng)設(shè)置的響應(yīng)body

參數(shù)

key

the content key, if you don't specific, then all contents will be cleared. 如果你沒選擇具體清除哪個key所對應(yīng)的內(nèi)容,那所有內(nèi)容將被清除

注意:

this parameter is introduced as of 2.2.0

返回值

參見