Is there a function similar to setTimeout() (JavaScript) for PHP?

前端 未结 9 1544
离开以前
离开以前 2020-12-06 16:08

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

9条回答
  •  广开言路
    2020-12-06 17:02

    There's the sleep function, which pauses the script for a determined amount of time.

    See also usleep, time_nanosleep and time_sleep_until.

提交回复
热议问题