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.


-- PHP Development Mailing List <> To unsubscribe, visit:

Reply via email to