16.7 Operators

Team-Fly    

 
Webmaster in a Nutshell, 3rd Edition
By Robert Eckstein, Stephen Spainhour
Table of Contents
Chapter 16.  PHP

16.7 Operators

Expressions are combined and manipulated using operators. The following table lists the operators from highest to lowest precedence; the second column (A) shows the operators' associativity. These operators should be familiar to you if you have any C, Java, or Perl experience.

Operators

Associativity

!, ~, ++, --, @, (the casting operators)

Right

*, /, %

Left

+, -, .

Left

<<, >>

Left

<, <=, >=, >

Nonassociative

==, !=, ===, !==

Nonassociative

&

Left

^

Left

Left

&&

Left

Left

? : (conditional operator)

Left

=, +=, -=, *=, /=, %=, ^=, .=, &=, =, <<=, >>=

Left

AND

Left

XOR

Left

OR

Left


Team-Fly    
Top


Webmaster in a Nutshell
Webmaster in a Nutshell, Third Edition
ISBN: 0596003579
EAN: 2147483647
Year: 2002
Pages: 412

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net