略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: Yaf_Response_Abstract::clearBody

2024-12-22

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所对应的内容,那所有内容将被清除

注意:

this parameter is introduced as of 2.2.0

返回值

参见

add a noteadd a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/yaf-response-abstract.clearbody.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3