This is an old revision of the document!
WMPRO, WMMINI FW > 1.0 WMMEGA FW > 2.0
Call a user defined function with optional parameters
function_name: String containing the name of the user function to call
parameters: Optional parameters to pass to the function
The result of the function can be of any type depending on the way the function is defined
<? function my_add($x,$y) { return $x+$y; } $result=call_user_func("my_add",1,3); print($result); // result is 4 ?>
If called from within a function, the return statement immediately ends execution of the current function, and returns its argument as the value of the function call.