Operator: An operator is a symbol that tells the compiler to perform certain mathematical or logical manipulations.
PHP language supports following type of operators.
- Arithmetic Operators
- Comparison Operators
- Logical (or Relational) Operators
- Assignment Operators
- Conditional (or ternary) Operators
Arithmetic Operators
+
–
*
/
++
—
%
Comparison Operators
==
!=
>
<
>=
<=
Logical Operators
And
Or
&&
||
!
Assignment Operators
=
+=
-=
*=
/=
%=
Conditional Operator
? :