January 2000
Beginner to intermediate
128 pages
1h 48m
English
Expressions are combined and manipulated using operators. The following table shows the operators available in PHP, along with their precedence (P) and associativity (A). The following table lists the operators from highest to lowest precedence. These operators should be familiar to you if you have any C, Java, or Perl experience.
|
Operators |
P |
A |
|---|---|---|
|
|
16 |
Right |
|
|
15 |
Left |
|
|
14 |
Left |
|
|
13 |
Left |
|
|
12 |
Non-associative |
|
|
11 |
Non-associative |
|
|
10 |
Left |
|
|
9 |
Left |
|
|
8 |
Left |
|
|
7 |
Left |
|
|
6 |
Left |
|
|
5 |
Left |
|
|
4 |
Left |
|
|
3 |
Left |
|
|
2 |
Left |
|
|
1 |
Left |
Read now
Unlock full access