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/03/01 12:45] jeff |
uphp:functions:call_user_func [2017/03/31 12:45] jeff |
||
---|---|---|---|
Line 5: | Line 5: | ||
====Description==== | ====Description==== | ||
- | <well size=" | + | <well size=" |
- | <span style=" | + | <span style=" |
< | < | ||
- | <span style=" | + | <span style=" |
- | <span style=" | + | <span style=" |
- | <span style=" | + | <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 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: | ||
+ |