php wait for code to complete in time code example
Example 1: php delay
sleep(1.5); // Sleeps 1.5 seconds
Example 2: sleep php
<?php
sleep(4);
echo "Done\n";
?>
sleep(1.5); // Sleeps 1.5 seconds
<?php
sleep(4);
echo "Done\n";
?>