OK, I can see the use of ob_start with the output_callback
parameter set but I can't see the use of ob_start when calling it without any parameters set at all.
Whats the point of disabling output to later throw all the output at once? Don't this use more memory (server side) and slow downloads (client side) since the download starts only after the page is fully rendered (or when ob_end_flush is called)?
ob_start();
for ($i = 1; $i <= 15; $i++)
{
echo $i, ' ';
sleep(1);
}
ob_end_flush();
Anyone can give me the usage/advantagesof using ob_start()
without any parameters set (like in the snippet above).