Hi,

I have a situation, I found problem regarding sleep(). I like to display seconds from 60 to 0. First it will display 60, then after sleep() of 1 second it will display 59 and so on until it reach to 0. But it will display the all 60 numbers at a time, whereas I like to display one number at a time with 1 second interval.

Here is my code. Please help. Thanks a lot.

PHP Code:
<?php 

for($i=60;$i>=0;$i--)
{
    echo 
$i;
    
sleep(1);
}

?>