[Solved] Are these php functions correct? [closed]
Please check the below code, what wrong you did are commented in code:- <?php error_reporting(E_ALL); // check all error including warning and notice error too ini_set(‘display_errors’,1); // display errors function add($x,$y) { $result= $x+$y; return $result; } // ; not needed $number1= $_POST[‘n_1’]; $number2= $_POST[‘n_2’]; echo $number1.” + “.$number2.” = “.add($number1,$number2);// using “ is wrong … Read more