Understanding Arithmetic Operators in PHP

Addition: 10 + 5 = 15

Subtraction: 10 - 5 = 5

Multiplication: 10 * 5 = 50

Division: 10 / 5 = 2

Modulus: 10 % 5 = 0

What Each Operator Does

Addition (+): Adds two numbers together.
Subtraction (-): Subtracts the second number from the first.
Multiplication (*): Multiplies two numbers.
Division (/): Divides the first number by the second.
Modulus (%): Returns the remainder of the division of the first number by the second.