Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

PHP time_sleep_until() Function

PHP time_sleep_until() Function

PHP Misc Reference Manual PHP Misc Reference Manual

Example

Delay execution of the current script until 10 seconds have elapsed:


Definition and Usage

The time_sleep_until() function delays execution of the current script until the specified time.

**Note:** If the specified number is negative, this function will throw an error.


Syntax

time_sleep_until(

timestamp

)

Parameters Description
timestamp Required. Specifies the time to wake up.

Technical Details

Return Value: Returns TRUE on success, FALSE on failure.
PHP Version: 5.1.0+
Changelog: This function was not implemented on Windows platforms until PHP 5.3.0.

PHP Misc Reference Manual PHP Misc Reference Manual