1
2
3
4
5
6
7
8
ob_start();
for ($i=0; $i < 11; $i++) {
sleep(5);
echo $i,"\n";
ob_flush();
flush();
}
ob_end_clean();