if i have a for loop going like this …
for( $i = 0; $i < 1000; $i++ ){
echo “blah, blah, blah …”;
}
how can i make it pause for a specific amount of seconds
between each loop and ‘echo’ content to the screen before
resuming the for loop?
i was thinking of using javascript to create a timer, but i assume that
as versatile as php is it probably already has a timer function or even better
a for loop function that lets you specify a pause.
i basically want to loop a file of information, live a comma separated list file,
and print to screen after each loop if i find a match without having to wait for the entire loop to complete.
perhaps i can break; the loop each time a match is found, and then restart it again after [x] seconds have elapsed and tell it where to resume the loop at?
thanks for your input.