版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u012972536/article/details/78463583
function eventLoop()
{
set_time_limit(0);
ob_start();
echo str_repeat('', 4096);
ob_end_flush();
ob_flush();
$i = 1;
while (true) {
echo $i++ , ' ';
ob_flush();
flush();
sleep(1);
}
}