PHP Arithmetic Operators

Addition (+)

$a + $b = 13

Adds the value of $b to $a.

Subtraction (-)

$a - $b = 7

Subtracts the value of $b from $a.

multiplication (*)

$a * $b = 30

Multiplies the value of $b by $a.

Division (/)

$a / $b = 3.3333333333333

Divides the value of $a by $b.

Modulus (%)

$a % $b = 1

Gives the remainder left over after dividing $a by $b.