HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
PHP Misc Reference : Delay execution of the current script for 2,5 seconds
The time_nanosleep() function delays execution of the current script for a specified number of seconds and nanoseconds.
Parameter | Description |
---|---|
seconds | Required. Specifies the number of seconds to delay the script |
nanoseconds | Required. Specifies the number of nanoseconds to delay the script (must be less than 1,000,000,000) |
Return Value: |
Returns TRUE on success, or FALSE on failure. If the call was interrupted by a signal, an associative array will be returned with the number of seconds or nanoseconds remaining in the delay. |
---|---|
PHP Version: | 5+ |
Changelog: | This function did not work on Windows platforms prior PHP 5.3.0 |
❮ PHP Misc Reference