pause function exicution for 2 secs and then continue in php 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";
?>