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/20 15:33] jeff |
uphp:functions:call_user_func [2017/03/28 20:04] 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 | ||
Line 18: | Line 18: | ||
====Parameters==== | ====Parameters==== | ||
- | < | + | < |
- | < | + | < |
====Return Value==== | ====Return Value==== | ||
Line 26: | Line 26: | ||
====Example==== | ====Example==== | ||
- | <code php><? | + | <code php> |
- | function my_add($x, | + | <? |
- | return $x+$y; | + | function my_add($x, |
- | } | + | return $x+$y; |
- | $result=call_user_func(" | + | } |
- | print($result); | + | $result=call_user_func(" |
- | ?></ | + | print($result); |
+ | ?> | ||
+ | </ | ||
====See Also==== | ====See Also==== | ||
Line 43: | Line 45: | ||
If used within a function, the [[uphp: | If used within a function, the [[uphp: | ||
+ |