delete echo php code example
Example 1: php clear echo
<?php
ob_start();
echo 'a';
print 'b';
// some statement that removes all printed/echoed items
ob_end_clean();
echo 'c';
// the final output is equal to 'c', not 'abc'
?>
Example 2: php clean all output buffers
while ( ob_get_level() ) {
ob_end_clean();
}