array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'pt_BR', ), 'this' => array ( 0 => 'function.register-tick-function.php', 1 => 'register_tick_function', ), 'up' => array ( 0 => 'ref.funchand.php', 1 => 'Funções para Manuseamento de Funções', ), 'prev' => array ( 0 => 'function.register-shutdown-function.php', 1 => 'register_shutdown_function', ), 'next' => array ( 0 => 'function.unregister-tick-function.php', 1 => 'unregister_tick_function', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/funchand/functions/register-tick-function.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 4 >= 4.0.3, PHP 5, PHP 7, PHP 8)
register_tick_function — Register a function for execution on each tick
Registers the given callback
to be executed when a
tick is called.
callback
The function to register.
args
Exemplo #1 register_tick_function() example
<?php
declare(ticks=1);
// using a function as the callback
register_tick_function('my_function', true);
// using an object->method
$object = new my_class();
register_tick_function(array($object, 'my_method'), true);
?>