• Teach Your Self With
             w3htmlschool.com

PHP Arithmetic Operators

Arithmetic Operators
These perform basic mathematical functions.
Operator Name Example
addition operator (+)2+2 output 4
subtraction operator (-) 4-1 output  3
division operator (/)10/2 output 5
modulus operator (%) 3*2 output 6
multiplication operator (*)

3*2 output 6

Logical Operators And or &&,or or ||,Xor
String Operators

 .(Dot)

Example
Example Output