Write a PHP script to delay the program execution for the given number of seconds.
<?php // current time echo date('h:i:s') . "\n"; // sleep for 5 seconds sleep(5); // wake up echo date('h:i:s')."\n"; ?>
Sample Output:
02:47:42 02:47:47
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Sample Output:
need an explanation for this answer? contact us directly to get an explanation for this answer