User Tools

Site Tools


uphp:functions:call_user_func

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
uphp:functions:call_user_func [2017/02/18 12:48]
jeff
uphp:functions:call_user_func [2017/02/18 14:32]
jeff
Line 1: Line 1:
-======call_user_function======+======call_user_func======
 <badge>WMPRO, WMMINI FW > 1.0</badge> <badge>WMMEGA FW > 2.0</badge> <badge>WMPRO, WMMINI FW > 1.0</badge> <badge>WMMEGA FW > 2.0</badge>
  
Line 14: Line 14:
  
 ====Return Value==== ====Return Value====
-The result of the function can be of any type depending on the way the function is defined+Any type depending on the way the function is defined
  
 ====Example==== ====Example====
Line 24: Line 24:
 print($result); // result is 4 print($result); // result is 4
 ?></code> ?></code>
- 
-====Additional Information==== 
-If called from within a function, the [[uphp:statements:return]] statement immediately ends execution of the current function, and returns its argument as the value of the function call. 
  
 ====See Also==== ====See Also====
 +[[uphp:statements:function]] - Define a function
 +
 [[uphp:statements:return]] - Return program control to the calling module [[uphp:statements:return]] - Return program control to the calling module
  
 [[print()]] - Output data to the current output stream such as a web page or terminal [[print()]] - Output data to the current output stream such as a web page or terminal
 +
 +====Additional Information====
 +User defined functions can take many different forms, and it is not necessary to use [[call_user_func()]] to execute a function unless a direct return value is needed.
 +
 +If used within a function, the [[uphp:statements:return]] statement immediately ends execution of the function, and returns its argument as the value of the function call.
uphp/functions/call_user_func.txt · Last modified: 2021/09/13 05:57 (external edit)