time_sleep_until

PHP 5 >= 5.1.0, PHP 7, PHP 8
time_sleep_until - Make the script sleep until the specified time
Manual
Code Examples

time_sleep_until( float$timestamp ): bool

Makes the script sleep until the specified timestamp.

Parameters

timestamp

The timestamp when the script should wake.

Return Values

Returns true on success or false on failure.

Exceptions and Errors

If the specified timestamp is in the past, this function will generate a E_WARNING.

Notes

Note:

All signals will be delivered after the script wakes up.

Related Functions

Example of time_sleep_until

Show all examples for time_sleep_until

PHP Version: