PHP Math Operators

Addition

6 + 9 = 15

Subtraction

6 - 9 = -3

Multiplication

6 * 9 = 54

Division

6 / 9 = 0.66666666666667

Modulus

6 % 9 = 6

Explanation

The addition adds two numbers together. The subtraction subtracts one number from another. The multiplication multiplies two numbers. The division divides one number by another. The modulus finds the remainder after division.

Back to Start