muneeba9071
03-19-2011, 03:25 PM
Hi,
Take this sample loop:
for($i = 1; $i <= 4; $i++) {
print $i."<br>";
sleep(2);
}
When you run the above, it will output all numbers at once. How we can print each number to the browser and wait 2 seconds, then print the other one?
Take this sample loop:
for($i = 1; $i <= 4; $i++) {
print $i."<br>";
sleep(2);
}
When you run the above, it will output all numbers at once. How we can print each number to the browser and wait 2 seconds, then print the other one?