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/20 12:10]
jeff
uphp:functions:call_user_func [2017/03/01 12:32]
jeff
Line 1: Line 1:
 ======call_user_func====== ======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>
  
 Call a user defined function with optional parameters Call a user defined function with optional parameters
  
 ====Description==== ====Description====
-<well size="sm"><html> +<well size="sm"><html><span style="font-size:125%;color:green;">mixed 
-<span style="font-size:125%;color:green;">mixed  +<span style="color:black;"></html>[[call_user_func]] 
-<span style="color:black;"></html>[[call_user_func]]<html> (  +<html>
-<span style="color:green;">string  +<span style="color:green;">string 
-<span style="color:blue;">$function_name  +<span style="color:blue;">$function_name 
-<span style="color:black;">[,  +<span style="color:black;">[, 
-<span style="color:green;">mixed  +<span style="color:green;">mixed 
-<span style="color:blue;">$parameters +<span style="color:blue;">$parameters
 <span style="color:black;">... ] ) <span style="color:black;">... ] )
 </html></well> </html></well>
Line 26: Line 26:
  
 ====Example==== ====Example====
-<code php><? +<code php><?
 function my_add($x,$y) { function my_add($x,$y) {
   return $x+$y;   return $x+$y;
 } }
 $result=call_user_func("my_add",1,3); $result=call_user_func("my_add",1,3);
-print($result); // result is 4+print($result); //output will be '4'
 ?></code> ?></code>
  
uphp/functions/call_user_func.txt · Last modified: 2021/09/13 05:57 (external edit)