RE: [PHP-DEV] Possible problem in the parser
| From: | (Marcus Börger) | Date: | Thu, 13 Mar 2003 19:32:33 +0000 |
| Subject: | RE: [PHP-DEV] Possible problem in the parser | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-95168@lists.php.net to get a copy of this message | ||
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