009 - arithmatic operations137303.333333333333311000print the value of first variable is = 101112111026
<?php
// 009 - arithmatic operations
echo "</br><span class='myheading'>009 - arithmatic operations</span></br>";
$a = 10;
$b = 3;
$c = $a + $b; // additon
echo $c ."</br>";
$c = $a - $b; // subtraction
echo $c ."</br>";
$c = $a * $b; // Multiplicaiton
echo $c ."</br>";
$c = $a / $b; // Division
echo $c ."</br>";
$c = $a % $b; // Reminder
echo $c ."</br>";
$c = $a ** $b; // Power
echo $c ."</br>";
echo "print the value of first variable is = ". $a ."</br>";
$a++; // "post increment
echo $a ."</br>";
++$a; // pre increment
echo $a ."</br>";
$a--; // post decrement
echo $a ."</br>";
--$a; // pre decrement
echo $a ."</br>";
$c = ($a + $b) * 2; // formula
echo $c;
echo "<br>";
?>