sleep($number_of_seconds);
usleep($number_of_microseconds);
<?php
echo date('h:i:s'); //17:30:30
// Stop 1 second
sleep(1);
//usleep(1000000); // the same in microsecondes
//for more 1 second use sleep
echo date('h:i:s');//17:30:31
?>
<?php
echo date('h:i:s').'<br>'; //hour:minute:second
sleep(10); //10 seconds
echo date('h:i:s');
?>
<?php
sleep(4);
echo "Done
";
?>
<?php
sleep(4);
echo "Done
";
?>