Update page 'P# v1.0 Specification'
@@ -287,6 +287,12 @@ The order of evaluation of operators in an expression is determined by the prece
|
||||
|
||||
### 6.1. Operator Precedence
|
||||
When an expression contains multiple operators, the precedence of the operators controls the order in which the individual operators are evaluated. The precedence of an operator is established by the definition of its associated grammar production. The following list shows common PHP operators ordered by precedence (highest precedence first):
|
||||
|
||||
| Description | Operator | Associativity |
|
||||
|---------------------|-------------|---------------|
|
||||
| increment/decrement | ++ -- | left |
|
||||
|
||||
|
||||
* increment/decrement (++ --)
|
||||
* casting
|
||||
* logical "not" (!)
|
||||
|
||||
Reference in New Issue
Block a user