Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我调用ob_start()但没有调用任何 end 方法时,输出仍在发送,就好像我会调用ob_end_flush(). 总是这样还是取决于 PHP 版本或配置参数?
ob_start()
ob_end_flush()
PHP 5.5.3
相关问题/答案:
“...当不使用 ob_end_* 函数之一时,PHP 会隐式刷新您的输出缓冲区。”
所以如果你不想要你需要使用ob_end_clean()
ob_end_clean()