Math Operators!

My variables are x = 10 and y = 4



Addition

14



Subtraction

6



Multiplication

40



Division

2.5



Modulus

2



Pre-Increment

11



Post-Increment

11
12



Pre-Decrement

4



Post-Decrement

3

2

Explanation

These are examples of the math operators in PHP that help perform basic arithmetic and manipulate numeric values within the code. When looking at the addition, subtraction, multiplication, and division sections the answers are relatively self explanatory. You are just adding, subtracting, multiplying, or dividing the two variables. When looking at the Modulus section, you are just taking the remainder of x divided by y. For pre-increment and decrement, this changes the first value, and then returns it. For post increment and decrement, this returns the first value, then changes it.