The question sort of says it all - is there a function which does the same as the JavaScript function setTimeout() for PHP? I\'ve searched
There's the sleep function, which pauses the script for a determined amount of time.
See also usleep, time_nanosleep and time_sleep_until.