magnetar
0
Q:

setinterval php

setInterval(function(){
       echo "hi!\n";
}, 1000);
0
function setInterval($f, $milliseconds)
{
       $seconds=(int)$milliseconds/1000;
       while(true)
       {
           $f();
           sleep($seconds);
       }
}
0

Tags

New to Communities?

Join the community