|
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) Example #4 Passing values by reference
<?php The above example will output: function mega $a=55 global $bar=55 Notes
See Also
|