Menu Samaritan's Purse

CALL_USER_FUNC

Call the callback given by the first parameter

SYNTAX

call_user_func ( callable $callback [, mixed $... ] ) : mixed

PARAMETERS

callback

The callable to be called.

...

Zero or more parameters to be passed to the callback.

Note: Note that the parameters for call_user_func() are not passed by reference.

RETURN

Returns the return value of the callback.

EXAMPLES

1

myfunction Hello

2

myfunction Hello

3

{closure} Hello

4

myclass::myfunction Hello

5

myclass::myfunction Hello

6

myclass::myfunction Hello

7

mynamespace Hello

8

mynamespace Hello

PHP