Using Arithmetic Operators
To perform mathematical operations on variables, use the standard arithmetic
operators, as illustrated in the following example:
<?php
// define variables
$num1 = 101;
$num2 = 5;
// add
$sum = $num1 + $num2;
// subtract
$diff = $num1 - $num2;
// multiply
$product...