Addition: 10 + 5 = 15
Subtraction: 10 - 5 = 5
Multiplication: 10 * 5 = 50
Division: 10 / 5 = 2
Modulo: 10 % 5 = 0
Exponentiation: 10 ** 5 = 100000
Arithmetic operators in PHP perform common mathematical operations:
- Addition (+): Adds two values together.
- Subtraction (-): Subtracts one value from another.
- Multiplication (*): Multiplies two values.
- Division (/): Divides the first value by the second.
- Modulo (%): Returns the remainder of division.
- Exponentiation (**): Raises the first value to the power of the second.