Posted by newbie on 12/06/07 13:17
Can someone explain to me why the following code yields output "20 < x <= 30"? echo $x > 30 ? "x > 30" : $x > 20 ? "20 < x <= 30" : "x < 20"; I expected that ir will be evaluated as ($x > 30 ? "x > 30" : ($x > 20 ? "20 < x <= 30" : "x < 20")) but I was wrong.
[Back to original message]
Copyright © 2005-2006 Powered by Custom PHP Programming