Menu Riverview Church

CALL_USER_FUNC_ARRAY

Call a callback with an array of parameters

SYNTAX

call_user_func_array ( callable $callback , array $param_arr ) : mixed

PARAMETERS

callback

The callable to be called.

param_arr

The parameters to be passed to the callback, as an indexed array.

RETURN

Returns the return value of the callback, or FALSE on error.

EXAMPLES

1

myfunction Hello World!

2

{closure} Hello World!

3

myclass::myfunction Hello World!

4

myclass::myfunction Hello World!

5

myclass::myfunction Hello World!

6

mynamespace Hello World!

7

mynamespace Hello World!

8

myfunction Hello World!
global Hello World!

PHP