The PHP arithmetic operators are used with numeric values to perform basic arithmetic operations. For Ex. Addition, Subtraction, Multiplication etc.
| Operator | Name | Description |
|---|---|---|
| -$a | Negation | Return Negative value of a given number |
| $a + $b | Addition | Sum of given numbers |
| $a - $b | Subtraction | Difference of $a and $b |
| $a * $b | Multiplication | Production of given numbers |
| $a / $b | Division | Quotient of $a and $b |
| $a % $b | Modulus | Remainder of $a devide by $b |
| $a ** $b | Exponentiation | Result of raising $a to the $b'th power |