PHP Arithmetic Operators

Arithmetic Operators are used to Perform Arithmetic Operations on Numeric Values Such as addition, subtraction, multiplication and etc.

Operator Name Example Result
+ Addition $a+$b Addition of $a and $b
- Subtraction $a-$b Difference of $a and $b
* Multiplication $a*$b Product of $a and $b
/ Division $a/$b Quotient of $a and $b
% Modulus $a%$b Remainder of $a divided by $b
** Exponentiation $a**$b Result of raising $a to the $b'th power (Introduced in PHP 5.6)