Math in PHP
Addition ($a + $b): 100 + 50 = 150
Subtraction ($a - $b): 100 - 50 = 50
Multiplication ($a * $b): 100 * 50 = 5000
Division ($a / $b): 100 / 50 = 2
Modulus ($a % $b): 100 % 50 = 0
Exponent ($a ** $b): 100 ** 50 = 1.0E+100
Pre-Increment (++$a): 101
Post-Increment ($a++): 50
Pre-Decrement (--$b): 100
Post-Decrement ($b--): 51
Expalnation
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.
Exponentiation (**): Raises the first number to the power of the second number.
Pre-Increment (++$var): Increases the value of a variable by one.
Post-Increment ($var++): Returns the value of the variable, then increases the value by one.
Pre-Decrement (--$var): Decreases the value of a variable by one.
Post-Decrement ($var--): Returns the value of the variable, then decreases the value by one.