PHP Operators
Arithmetic, Assignment, Comparison, etc.
PHP Operators
Operators are used to perform operations on variables and values.
Arithmetic Operators
+Addition-Subtraction*Multiplication/Division%Modulus**Exponentiation
Assignment Operators
The basic assignment operator in PHP is =. It means that the left operand gets set to the value of the assignment expression on the right.
Comparison Operators
==Equal===Identical (value and type)!=Not equal<>Not equal>Greater than<Less than<=>Spaceship (PHP 7+)
Logical Operators
andAndorOrxorXor&&And||Or!Not