1. Computing & Technology

Discuss in my forum

Operator

By , About.com Guide

See More About:
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

Related Searches operands operand expression lt

©2012 About.com. All rights reserved.

A part of The New York Times Company.