diff --git a/reference/funchand/functions/register-tick-function.xml b/reference/funchand/functions/register-tick-function.xml index 12f089b68c..e76dc67fe8 100644 --- a/reference/funchand/functions/register-tick-function.xml +++ b/reference/funchand/functions/register-tick-function.xml @@ -1,5 +1,5 @@ - + @@ -19,26 +19,26 @@ Registers the function named by func to be executed when a tick is - called. + called. Also, you may pass an array consisting of an object and a + method as the func. - - You may also pass an array consisting of an object and a method as the func - - - <function>register_tick_function</function> Example - + + + <function>register_tick_function</function> example + method +$object = new my_class(); +register_tick_function(array(&$object, 'my_method'), TRUE); ?> ]]> - - + + +