PHP Math Examples
Subtraction Example: 23-13
10
I use the variable $ sub to show that I want to subtract 23-13,
which in result will give me 10.
Addition Example: 50+20
70
I use the variable $ add to add 50 + 20 to which it will give me
the answer of 70.
Division Example: 100/5
20
I am using $ div to divide 100 by 5, which ends up giving me 20.
Multiplication Example: 200*100
20000
Here I use * mult to multiply 200 times 100, which gives me 20000.
Decrement Example: 20 decremented by 2
20
I use $ dec to find 20 decremented by 2, which gives me 20 as a result.