Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Output Buffering Second
<?php
function testFuncOne($buffer) {
return (str_replace("Apple", "Orange", $buffer));
}
ob_start("testFuncOne");
echo "Hello Apple <br>";
echo "How are you my Apple! <br>";
echo "Another, How are you? <br>";
echo "Testing One Apple Three <br>";
ob_end_flush();
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment