PHP » PYTHON |
login |
register |
about
|
PYTHON call_user_func_array
is this article helpful?
|
Python replacement for PHP's call_user_func_array
[
edit
| history
]
# if you already have a function object: result = function(*param_arr) # if you have the name of the function: result = eval(function_name)(*param_arr) call_user_func_array(PHP 4 >= 4.0.4, PHP 5) call_user_func_array — Call a user function given with an array of parameters DescriptionCall a user defined function with the parameters in param_arr . Parameters
Return ValuesReturns the function result, or FALSE on error. Examples
Example #1 call_user_func_array() example
<?php
Example #2 call_user_func_array() using namespace name
<?php
Example #3 Using lambda function
<?php
Notes
See Also
|
more
Recently updated
more
Most requested
more
Last requests
|