PHP Tutorial Tutorials - PHP Operators

PHP Operators

What is Operators

Operators are symbols that tell the PHP engine to manipulate or perform operations on variables and values.
For example 1+2. 1 and are called operands and + is called operator.
PHP language supports following type of operators:

  • Arithmetic Operators
  • Bitwise Operators
  • Comparison Operators
  • Logical Operators
  • Assignment Operators
  • Incrementing and Decrementing Operators
  • Conditional Operator
  • String Operators
  • Array Operators
  • Type Operators
  • Execution Operators
  • Error Control Operators
  • Spaceship Operator

Operators can also be grouped according to the number of values they take.

  • Unary operators: work with one operands.for example ! or ++
  • Binary operators: take two operands, such as + (plus) and - (minus)
  • Ternary operator: there is a single ternary operator, ? :
Date:2019-10-01 01:08:16 From:www.Lautturi.com author:Lautturi