Adding parameter(s) within function called functions with Params.
//functions with params function sum($x,$y) { $num1=$x; $num2=$y; echo $num1+$num2."<br />"; } sum(2,3); sum(4,5); sum(100,300);
by dev
Adding parameter(s) within function called functions with Params.
//functions with params function sum($x,$y) { $num1=$x; $num2=$y; echo $num1+$num2."<br />"; } sum(2,3); sum(4,5); sum(100,300);