note 53401 deleted from language.control-structures by bjori

From: Date: Wed, 26 Apr 2006 15:44:06 +0000
Subject: note 53401 deleted from language.control-structures by bjori
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-109758@lists.php.net to get a copy of this message
Note Submitter: edmund at haselwanter dot com ---- note to the posting from "dotwho at nospam dot mac dot com": Sure this is the expected behaviour. and/or binds weaker than ? : binds weaker than &&/||. So if you write: x and y ? a : b; you get x and (y ? a : b); And if you write x && y ? a : b; you get (x && y) ? a : b; You have got the point? I suggest to always add parentheses to make things clear, first for the interpreter/compiler and second for all the people reading ones code :-)

« previous php.notes (#109758) next »