PHP Arithmetic Operators

Addition (+): 10 + 3 = 13

The addition operator adds two numbers together.

Subtraction (-): 10 - 3 = 7

The subtraction operator takes the second number away from the first number.

Multiplication (*): 10 * 3 = 30

The multiplication operator multiplies two numbers together.

Division (/): 10 / 3 = 3.3333333333333

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

Modulus (%): 10 % 3 = 1

The modulus operator gives the remainder after one number is divided by another.

Back to Activity 3