I am using PHP 5.6.8 Version in xampp server. In that i am getting error in output in output the addition and sub time i got this output for this code
<?
echo"Hello PHP"." ". "Whats up"."<br/>";
echo "ADDING". 2+2 ."<br/>";
echo "SUB".3-2 ."<br/>";
echo "MUL". 2*2 ."<br/>";
echo "DIV". 2/2 ."<br/>";
echo "MODULS". 5%2 ."<br/>";
?>
Output
Hello PHP Whats up
2
-2
MUL4
DIV1
MODULS1
";` - notice the brackets. – Andrei Jun 03 '15 at 10:44