❮ PHP Output Control Functions
Output the contents of a buffer without deleting it:
<?php
ob_start();
echo "This output will be sent to the browser";
ob_flush();
echo "This output will not be sent to the browser";
ob_end_clean();
?>
Try it Yourself »
The ob_flush()
function outputs the contents of the topmost output buffer and then clears the buffer of the contents. The output may be caught by another output buffer or, if there are no other output buffers, sent directly to the browser.
ob_flush();
PHP Version: | 4.2+ |
---|
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!