1// functions require 'function' keyword
2// separate the parameters with a comma
3function addFunction($num1, $num2) {
4 $sum = $num1 + $num2;
5 echo "Sum of the two numbers is : $sum";
6}
7
8addFunction(1, 2); // echoes: Sum of the two numbers is : 3