#6
|
|||
|
|||
PHP Functions - Return values
Functions can also be used to return values. Example function add($x,$y) { $total = $x + $y; return $total; } echo "1 + 16 = " . add(1,16); ?> The output of the code above will be: 1 + 16 = 17 |