Saturday, 18 April 2015

what is the use of time_sleep_until() function in php ?

The time_sleep_until() function delays execution of the current script until the specified time.

Syntax
time_sleep_until(timestamp)

Example 

Delay the execution of the current script until 10 seconds:

<?php
// wake up ten seconds from now
time_sleep_until(time()+10);
?>

No comments:

Post a Comment