I want my script's execution to pause for about a half of a second.
While looking at the PHP documentation's user comments, I found multiple functions that purported to be able to do this. But, for each function, there was at least one poster who claimed that it was wrong and that they had a better way of doing it, and so-on and so-forth.
Thanks,
The first function I would try is usleep
. From the docs:
Delays program execution for the given number of micro seconds.
精彩评论