Home > PHP > Function > Misc. > sleep()

sleep()

sleep - Delay execution

Syntax

int sleep (int $seconds)

Arguments

  • seconds - Halt time in seconds.

Description

Delays the program execution for the given number of seconds.

Version

PHP 4, 5

Return value

Returns zero on success, or FALSE on errors. If the call was interrupted by a signal, sleep() returns the number of seconds left to sleep.