Delay execution of the current script until 10 seconds:
<?php// wake up ten seconds from nowtime_sleep_until(time()+10);?>The time_sleep_until() function delays execution of the current script until the specified time.
Note: This function will throw an error if the specified number is negative.
time_sleep_until( timestamp )
parameter | describe |
---|---|
timestamp | Required. Specify the time to wake up. |
Return value: | Returns TRUE if successful and FALSE if failed. |
---|---|
PHP version: | 5.1.0+ |
Update log: | This function was not implemented under the Windows platform until PHP 5.3.0 version. |