❮ PHP Output Control Functions
Delete some output before it can get sent to the browser:
<?php
ob_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();
?>
Try it Yourself »
The ob_clean()
function deletes all of the contents of the topmost output buffer, preventing them from getting sent to the browser.
ob_clean();
PHP Version: | 4.2 |
---|
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!