I want to be able to delete some output buffer parts. So that considering this code:
function over_all($string) {
if (OVER_ALL_ENABLED) {
# Stop output buffer
# Clean output buffer
echo $string;
# Restart output buffer
}
}
ob_start();
echo 'This is phrase 1<br>';
over_all('I don\'t want to see Phrase 1<br>');
echo 'This is phrase 2';
over_all('I don\'t want to see Phrase 2');
If I set OVER_ALL_ENABLED to true it will print:
I don’t want to see Phrase 1
I don’t want to see Phrase 2
else:
This is phrase 1
This is phrase 2
Could you replace comments with correct PHP functions?
Jeff, I think that this code must work
But if you run it under web server, and gz enable in it, that it will be buffering there