Thursday 18 February 2016

PHP - Operator Types

PHP Operators

Operators are used to perform operations on variables and values.


What is Operator? Simple answer can be given using expression 6 - 5 is equal to 1. Here 6 and 5 are called operands and - is called operator. PHP language supports following type of operators.
  • Arithmetic Operators
  • Comparison Operators
  • Logical (or Relational) Operators
  • Assignment Operators
  • Conditional (or ternary) Operators