This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
uphp:functions:call_user_func [2017/02/18 14:46] jeff |
uphp:functions:call_user_func [2017/03/01 12:45] jeff |
||
---|---|---|---|
Line 1: | Line 1: | ||
======call_user_func====== | ======call_user_func====== | ||
- | < | + | < |
Call a user defined function with optional parameters | Call a user defined function with optional parameters | ||
====Description==== | ====Description==== | ||
- | <well size=" | + | <well size=" |
+ | <span style=" | ||
+ | < | ||
+ | <span style=" | ||
+ | <span style=" | ||
+ | <span style=" | ||
+ | <span style=" | ||
+ | <span style=" | ||
+ | <span style=" | ||
+ | </ | ||
Return result as defined by the user function | Return result as defined by the user function | ||
====Parameters==== | ====Parameters==== | ||
- | < | + | < |
- | < | + | < |
====Return Value==== | ====Return Value==== | ||
Line 17: | Line 26: | ||
====Example==== | ====Example==== | ||
- | <code php><? | + | <code php><? |
function my_add($x, | function my_add($x, | ||
return $x+$y; | return $x+$y; | ||
} | } | ||
$result=call_user_func(" | $result=call_user_func(" | ||
- | print($result); | + | print($result); |
?></ | ?></ | ||