register_tick_function
(PHP 4 >= 4.0.3, PHP 5, PHP 7, PHP 8)
register_tick_function — Register a function for execution on each tick
Description
Registers the given callback to be executed when a tick is called.
Parameters
callbackThe function to register.
args
Examples
Example #1 register_tick_function() example
<?php
declare(ticks=1);
function my_tick_function($param) {
echo "Tick callback function called with param: $param\n";
}
register_tick_function('my_tick_function', true);
?>See Also
- declare
- unregister_tick_function() - De-register a function for execution on each tick
↑ and ↓ to navigate • Enter to select • Esc to close • / to open