• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 16. PHP > Operators

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



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint