PHP
my php5.org
Operator Precedence> <Expressions
Last updated: Fri, 24 Apr 2009

Operators

Table of Contents

An operator is something that you feed with one or more values (or expressions, in programming jargon) which yields another value (so that the construction itself becomes an expression). So you can think of functions or constructions that return a value (like print) as operators and those that return nothing (like echo) as any other thing.

There are three types of operators. Firstly there is the unary operator which operates on only one value, for example ! (the negation operator) or ++ (the increment operator). The second group are termed binary operators; this group contains most of the operators that PHP supports, and a list follows below in the section Operator Precedence.

The third group is the ternary operator: ?:. It should be used to select between two expressions depending on a third one, rather than to select two sentences or paths of execution. Surrounding ternary expressions with parentheses is a very good idea.

dish network santee south carolina


User Contributed Notes
Operators
There are no user contributed notes for this page.

Operator Precedence> <Expressions
Last updated: Fri, 24 Apr 2009