PHP basic syntax arithmetic operations
Arithmetic operators are the vast majority of knowledge we have learned in elementary school:
Symbol | Explanation | Example |
---|---|---|
+ | plus sign | #$x + $y |
- | Minus sign | $x - $y |
Multiply sign, multiply by | $x * $y | |
division sign, divided by | $x / $y | |
Remainder is also called modulus and modulus | $x % $y |