call_user_func_array

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

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

Calls the callback given by the first parameter with the parameters in args.

Parameters

callback

The callable to be called.

args

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

Return Values

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

Notes

Note:

Callbacks registered with functions such as call_user_func and call_user_func_array will not be called if there is an uncaught exception thrown in a previous callback.

Related Functions

Example of call_user_func_array

Show all examples for call_user_func_array

PHP Version:


Function call_user_func_array:

Function Handling Functions

Most used PHP functions