How to register a function for execution when a tick is called in PHP

1 Answer

0 votes
function f()
{
    echo "function f()<br />";
}


declare(ticks=1);

// f() is the callback function
register_tick_function('f', true);


/*
run:
    
function f()
function f()
function f()

       
*/

 



answered Jul 16, 2016 by avibootz
...