I hope that you can help me.
I have a very simple problem :-)
$i = 1;
while ($i < 5)
{
echo $i . '<br />';
sleep(1);
$i++;
}
When I run this code, it waits the couple of seconds as it should, and then displays the echo all together. How do I get it to display 1, then wait a second then 2, etc and not all at once at the end of the loop?
Could you please help with an example?
Thank you for your help
Kind Regards