| |
| | Operator precedence and associativity - Practical PHP Programming (via CobWeb/3.1 planetlab2.cs.virginia.edu) (Site not responding. Last check: 2007-10-14) |
 | | If there is any ambiguity in your expressions, PHP will resolve them according to its internal set of rules about operator precedence, that is, which operators are calculated first. |
 | | The answer is operator associativity, which decides the direction in which operations are performed. |
 | | The middle 5 has a minus on either side, but, because - is left-associative, the left-hand operation is performed first, giving the second possibility, and therefore -5. |
| www.hudzilla.org.cob-web.org:8888 /phpbook/read.php/3_12_7 (614 words) |
|