Functionally Equivalent Language Translation →
(functionc func-name ( [ p1 p2 .. pN ] ) body) (functionc+ func-name ( [ (p1 "Hello") ] )) ; acl: public, p1 defaults to a string value (functionc# func-name ( [ (p1 :ref) ] )) ; acl: protected, p1 is a reference variable (functionc- func-name ( [ (p1 ()) ] )) ; acl: private p1 defaults to 'NULL' (functionc* ( [ p1 p2 ] ) body ) ; anonymous function with two parameters
See also DEFUNC CLASS MVAR CVAR Coding for PHP Coding for javaScript
This is a synonym for DEFUNC
and its variants. Please refer to the DEFUN instruction for further information.