In PHP, Mathematical operators preform simple math calculations. The five mathematical operators are multiplication (*), division (/), subtraction (-),Modulus (%) and addition (+).
<?php
$a = 8;
$b = 4;
echo $a+$b;
?>
Output : 12
In PHP, Mathematical operators preform simple math calculations. The five mathematical operators are multiplication (*), division (/), subtraction (-),Modulus (%) and addition (+).
Output : 12