Math Operators in PHP
Addition ($a + $b): 15
Subtraction ($a - $b): 5
Multiplication ($a * $b): 50
Division ($a / $b): 2
Modulus ($a % $b): 0
Explanation of Arithmetic Operators
Arithmetic operators in PHP allow you to perform mathematical calculations:
- Addition (+): Adds two numbers.
- Subtraction (-): Subtracts one number from another.
- Multiplication (*): Multiplies two numbers.
- Division (/): Divides one number by another.
- Modulus (%): Returns the remainder of a division operation.
Back to Home