Easy Tutorial
❮ Func Ftp Nb Continue Func Array Udiff Assoc ❯

PHP time_nanosleep() Function

PHP Misc Reference Manual

Example

Delay the execution of the current script by 3.5 seconds:


Definition and Usage

The time_nanosleep() function delays the execution of the current script for a specified number of seconds and nanoseconds.


Syntax

Parameter Description
seconds Required. Specifies the number of seconds to delay the script execution.
nanoseconds Required. Specifies the number of nanoseconds to delay the script execution (must be less than 1,000,000,000).

Technical Details

Return Value: Returns 0 if successful, or FALSE if failed. <br> <br> If the call is interrupted by a signal, it returns an associative array with the remaining seconds and nanoseconds of the delay. <br>
PHP Version: 5+
--- ---
Changelog: This function was implemented on Windows platforms starting from PHP 5.3.0.
--- ---

❮ Func Ftp Nb Continue Func Array Udiff Assoc ❯