PHP Arithmetic Operators
PHP Arithmetic Operators
The PHP arithmetic operators are used with numeric values to perform common
arithmetical operations, such as addition, subtraction, multiplication etc.
x=y x=y The left operand gets set to the value of the expressio
right
x += y x=x+y Addition
x -= y x=x-y Subtraction
x *= y x=x*y Multiplication
x /= y x=x/y Division
x %= y x=x%y Modulus
<= Less than or equal $x <= $y Returns true if $x is less than or equal t
to
=== Identity $x === $y Returns true if $x and $y have the same key/
in the same order and of the same types