ob_end_clean
Clear (erase) the output buffer and turn off the output buffer
ob_end_clean()
function deletes the top-most output buffer and all its contents without sending anything to the browser.
Delete the output buffer without sending its content to the browser:
<?php ob_start ( ) ; echo "This part of the output will not be sent to the browser" ; ob_end_clean ( ) ; echo "This part of the output will be sent to the browser" ; ?>
Try it yourself
ob_end_clean ( ) ;