note 21800 rejected from language.expressions by tularis

From: Date: Tue, 12 Oct 2004 14:01:52 +0000
Subject: note 21800 rejected from language.expressions by tularis
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-78412@lists.php.net to get a copy of this message
Note Submitter: toreilly at cityspree dot com ---- I actually find the short-circuit aspect of expressions useful. As in: if ($foo AND Bar()) { echo "OK"; } where Bar() should only be run if $foo is set, and OK should only be printed if both evaluate to TRUE. My only concern is if this is the intended result in PHP. In other words, if I code this way will it fail under later releases of PHP?

« previous php.notes (#78412) next »