ob_clean()
创建于 2024-12-03 /
54
字体:
[默认]
[大]
[更大]
实例
在发送到浏览器之前删除一些输出:
<?phpob_start();
echo "This output will not be sent to the browser";
ob_clean();
echo "This output will be sent to the browser";
ob_end_flush();
?> 亲自试一试 »
定义和用法
ob_clean()
函数删除最顶层输出缓冲区的所有内容,阻止它们发送到浏览器。
语法
ob_clean();技术细节
PHP 版本: | 4.2 |
---|
❮ PHP 输出控制函数
0 人点赞过