Answers for "call sleep when $i is 100,200, 300 in php"

PHP
0

sleep microseconds php

<?php

// Current time
echo date('h:i:s') . "\n";

// wait for 2 seconds
usleep(2000000);

// back!
echo date('h:i:s') . "\n";

?>
Posted by: Guest on May-21-2020
0

sleep php

<?php
    sleep(4);
    echo "Done\n";
?>
Posted by: Guest on August-10-2020

Browse Popular Code Answers by Language