setinterval php

Solutions on MaxInterview for setinterval php by the best coders in the world

showing results for - "setinterval php"
Maria
26 Apr 2017
1setInterval(function(){
2       echo "hi!\n";
3}, 1000);
Safiya
09 Jan 2018
1function setInterval($f, $milliseconds)
2{
3       $seconds=(int)$milliseconds/1000;
4       while(true)
5       {
6           $f();
7           sleep($seconds);
8       }
9}