s;leep php code example Example 1: php delay sleep(1.5); // Sleeps 1.5 seconds Example 2: sleep php <?php sleep(4); echo "Done\n"; ?>