PHP
Arithmetic Operators

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

OperatorNameExampleResult
+Addition$a+$bAddition of $a and $b
Subtraction$a-$bDifference of $a and $b
*Multiplication$a*$bProduct of $a and $b
/Division$a/$bQuotient of $a and $b
%Modulus$a%$bRemainder of $a divided by $b
**Exponentiation$a**$bResult of raising $a to the $b’th power (Introduced in PHP 5.6)