- register_tick_function: documentation ( source)
<?php
declare(ticks=2);
// Una funciĆ³n llamada en cada evento tick
function tick_handler()
{
echo "tick_handler() llamado\n";
}
register_tick_function('tick_handler');
$a = 1;
if ($a > 0) {
$a += 2;
print($a);
}
?>