Certified PHP Developer Learning Resources User-defined functions

User-defined functions
 


A function may be defined using syntax such as the following:

Example #1 Pseudo code to demonstrate function uses
function foo($arg_1, $arg_2, /* ..., */ $arg_n)
{
    echo "Example function.\n";
    return $retval;
}
?>

 For Support