PHP 4 >= 4.0.4, PHP 5, PHP 7, PHP 8
call_user_func_array - Call a callback with an array of parameters
Code Examples

Example #1 call_user_func_array example

Result: foobar got one and two foo::bar got three and four
PHP Version:

Example #2 call_user_func_array using namespace name

Result: Hello Hannes! Hello Philip!
PHP Version:

Example #3 Passing values by reference

Result: function mega $a=55 global $bar=55
PHP Version:

Example #4 Using lambda function

Result: int(8)
PHP Version:

Function call_user_func_array:

Function Handling Functions

Most used PHP functions