PHP – Operators with example



Operator in PHP is a symbol that is used to perform operations.For example: +, -, *, / etc.

There are many types of operators in PHP which are given below:

  1. Arithmetic operators
  2. Assignment operators
  3. Comparison operators
  4. Increment/Decrement operators
  5. Logical operators
  6. String operators
  7. Array operators

Arithmetic operators

Arithmetic operators
Arithmetic operators

Assignment operators

Assignment operators
Assignment operators

Comparison operators

Comparison operators
Comparison operators

Increment/Decrement operators

Increment/Decrement operators
Increment/Decrement operators

Logical operators

Logical operators
Logical operators

String operators

String operators
String operators

Array Operator