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