1. Technology
You can opt-out at any time. Please refer to our privacy policy for contact information.

Operator

By

Definition: In an expression, the Operator tells us what action to preform on the Operands. In PHP there are three types of operators:

Mathematical:
+ (plus), - (minus), / (divided by), and * (multiplied by)

Comparison:
> (greater than), < (less than), == (equal to), and != (not equal to)

Boolean:
&& (true if both operands are true), || (true if at least one operand is true), xor (true if ONLY one operand is true), and ! (true if a single operand is false)

Examples:
 X == 3 + 4 

In this expression == and + are the operands

 6 > 10 - 5 

In this expression > and - are the operands

 X != 7 

In this expression != is the operand

Top Related Searches
  • operands
  • operand
  • expression
  • lt
    1. About.com
    2. Technology
    3. PHP / MySQL
    4. Programing Glossary
    5. Operator - PHP Operator - Math Operator

    ©2014 About.com. All rights reserved.