PHP Arithmetic Operators

Math Examples

Addition: 10 + 5 = 15
Subtraction: 10 - 5 = 5
Multiplication: 10 * 5 = 50
Division: 10 / 5 = 2
Modulus: 10 % 5 = 0

Explanation

The addition operator (+) adds two numbers together.

The subtraction operator (-) subtracts one number from another.

The multiplication operator (*) multiplies two numbers together.

The division operator (/) divides one number by another.

The modulus operator (%) finds the remainder after dividing one number by another.

Back to Activity 3 Home