【发布时间】:2012-01-07 15:52:23
【问题描述】:
ob_clean() 和 ob_flush() 有什么区别?
还有ob_end_clean() 和ob_end_flush() 之间的区别是什么?我知道ob_get_clean() 和ob_get_flush() 都获取内容并结束输出缓冲。
【问题讨论】:
-
查看
ob_clean()和ob_flush()和ob_end_clean()和ob_end_flush()的手册页,或者解释需要详细说明的具体方面。 -
您需要知道的一切都在文档中:php.net/manual/en/ref.outcontrol.php
-
我一直在研究它们,看起来没有区别。即使在示例中。
-
@AlexV 我已经更新了我的答案......但基本上这些函数直接写入输出缓冲区(就像
print或echo),因此你会看到没有区别函数签名。
标签: php output-buffering