RE: [PHP-DEV] Possible problem in the parser
[email protected] ((Marcus Börger)) Thu, 13 Mar 2003 20:32:33 +0100
| Newsgroups | php.dev |
|---|---|
| Message-ID | <[email protected]> |
At 14:58 13.03.2003, Ford, Mike [LSS] wrote: >Just to make this completely clear, in left-associative PHP > > b = a==1? 4:a==2? 5:6; > >is equivalent to > > b = (a==1? 4:a==2)? 5:6; NO it is not equal. Either '==' has higher precedence OR '?:' has. See one of my previous mails where i showed where the error is. marcus