PHP Math Operators

Addition: 10 + 3 = 13

Subtraction: 10 - 3 = 7

Multiplication: 10 * 3 = 30

Division: 10 / 3 = 3.3333333333333

Modulus: 10 % 3 = 1

What the Operators Do

The + operator adds two numbers together.

The - operator subtracts the second number from the first number.

The * operator multiplies two numbers.

The / operator divides the first number by the second number.

The % operator gives the remainder after division.

Back to Activity 3