PHP Arithmetic Operators

10 + 5 = 15

10 - 5 = 5

10 * 5 = 50

10 / 5 = 2

10 % 5 = 0

Operator Explanations

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 (%): Returns the remainder after dividing two numbers.