Menu Riverview Church

SLEEP

Delay execution

SYNTAX

sleep ( int $seconds ) : int

PARAMETERS

seconds

Halt time in seconds.

RETURN

Returns zero on success, or FALSE on error.

If the call was interrupted by a signal, sleep() returns a non-zero value. On Windows, this value will always be 192 (the value of the WAIT_IO_COMPLETION constant within the Windows API). On other platforms, the return value will be the number of seconds left to sleep.

EXAMPLES

09:26:24
09:26:25

PHP