Menu Samaritan's Purse

REGISTER_TICK_FUNCTION

Register a function for execution on each tick

SYNTAX

register_tick_function ( callable $function [, mixed $... ] ) : bool

PARAMETERS

function

The function to register.

...

RETURN

Returns TRUE on success or FALSE on failure.

EXAMPLES

1

1

2

myfunction
myfunction
myfunction
myfunction
myfunction

3

myfunction
myfunction

4

myclass::myfunction
myclass::myfunction
myclass::myfunction
myclass::myfunction
myclass::myfunction

5

myfunction

6

myfunction
myfunction
myfunction
myfunction
myfunction
myfunction

PHP