PHP Arithmetic Operators

Addition: 20 + 5 = 25

Subtraction: 20 - 5 = 15

Multiplication: 20 * 5 = 100

Division: 20 / 5 = 4

Modulus: 20 % 5 = 0

Explanation

Addition (+): Adds two numbers together.

Subtraction (-): Subtracts the second number from the first number.

Multiplication (*): Multiplies two numbers together.

Division (/): Divides the first number by the second number.

Modulus (%): Gives the remainder after dividing two numbers.

Back to Activity 3 Home