I don't know exactly how output buffering works but as far as know it stores content into some internal variable.
Regarding this, what is the difference of not using output buffering and storing content in my own local variable instead and than echo it at the end of script?
Example with output buffering:
<?php
ob_start();
echo "html page goes here";
ob_end_flush();
?>
And example without using output buffering:
<?php
$html = "html page goes here";
echo $html;
?>
What is the difference?