PHP Math Operators

10 + 3 = 13

10 - 3 = 7

10 * 3 = 30

10 / 3 = 3.3333333333333

10 % 3 = 1

Explanation

+ adds two numbers together.

- subtracts one number from another.

* multiplies two numbers.

/ divides one number by another.

% gives the remainder after division.

Back to Activity 3