Jump to content

sleep() in for/ while... loop


stijn0713

Recommended Posts

The reasoning is because the browser holds all output until the end of processing to display a complete document, or the content is flushed. However, flushing only works on some browsers.

 

Take a look at flush and ob_flush to learn more about flushing. If this was ran in CLI (command line interface), you would see the output as expected. 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.