PHP Arithmetic Operators

Add Ex: 10 + 5 = 15

addition operator adds two values together to get their total sum.


Sub Ex: 10 - 5 = 5

The subtraction operator (-) subtracts the right value from the left value to find the difference.


Multiply Exa: 10 * 5 = 50

The multiplication operator (*) multiplies two numbers together to find the product.


Division Example: 10 / 5 = 2

The division operator (/) divides the left value by the right value to calculate the quotient.


Modulus Example: 10 % 3 = 1

The modulus operator (%) divides two numbers and returns the leftover remainder.