PHP Math Operators

Addition: 10 + 3 = 13

Subtraction: 10 - 3 = 7

Multiplication: 10 * 3 = 30

Division: 10 / 3 = 3.3333333333333

Remainder: 10 % 3 = 1

What Each Operator Does

+ adds two numbers together.

- subtracts one number from another.

* multiplies two numbers.

/ divides one number by another.

% gives the remainder after division.

Back to Home