Answers for "setinterval php"

PHP
1

setinterval php

setInterval(function(){
       echo "hi!\n";
}, 1000);
Posted by: Guest on October-16-2020
1

setinterval php

function setInterval($f, $milliseconds)
{
       $seconds=(int)$milliseconds/1000;
       while(true)
       {
           $f();
           sleep($seconds);
       }
}
Posted by: Guest on October-16-2020

Browse Popular Code Answers by Language