|
call_user_func_arrayCall a callback with an array of parameters Description
mixed call_user_func_array
( callable
$callback
, array $param_arr
)
Calls the Parameters
Return Values
Returns the return value of the callback, or Changelog
Examples
Example #1 call_user_func_array example
<?php The above example will output something similar to: foobar got one and two foo::bar got three and four Example #2 call_user_func_array using namespace name
<?php The above example will output something similar to: Hello Hannes! Hello Philip! Example #3 Using lambda function
<?php The above example will output: int(8) Notes
See Also
|