PHP sleep() Function
Complete PHP Misc Reference
Definition and Usage
The sleep() function delays execution of the current script for a specified number of
seconds.
Syntax
| Parameter |
Description |
| seconds |
Required. Specifies the number of seconds to delay the
script |
Example
<?php
echo date('h:i:s') . "<br />";
//sleep for 10 seconds
sleep(10);
//start again
echo date('h:i:s');
?>
|
The output of the code above will be something like this:
Complete PHP Misc Reference
Click here to design a Stunning Flash Website for Free
Wix is a revolutionary web design tool that provides anyone with the possibility to create professional and beautiful websites for free.
With e-commerce features, search engine visibility and many more professional tools, Wix is the ultimate solution for creating a spectacular site while saving tons of money.
|