Skip to content

Instantly share code, notes, and snippets.

@myanmarlinks
Created July 4, 2017 14:50
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