Home >>PHP Tutorial >PHP Operators

PHP Operators

Operators in PHP With Example

Variables are simply containers for information. In order to do anything useful with them, you need Operators .

Operators are symbols that tell the PHP processor to perform certain actions.

For example, the addition(+) symbol is an Operators that tells PHP to add two variables or values, while the greater-than(>) symbol is an Operators that tells PHP to compare two values.

PHP supports more than 50 such Operators , ranging from operators for arithmetical operations to operators for logical comparison and bitwise calculations.

This section discusses the most commonly used Operators .  

There are four type of operators generally used by us.

  1. Arithmetic Operators
  2. Assignment Operators
  3. Comparison Operators
  4. Logical Operators

No Sidebar ads