ob_clean
Clear (erase) the output buffer
ob_clean()
function deletes all contents of the top-most output buffer to prevent them from being sent to the browser.
Remove some output before sending to the browser:
<?php ob_start ( ) ; echo "This part of the output will not be sent to the browser" ; ob_clean ( ) ; echo "This part of the output will be sent to the browser" ; ob_end_flush ( ) ; ?>
Try it yourself
ob_clean ( ) ;