note 65189 deleted from language.control-structures by bjori

From: Date: Wed, 26 Apr 2006 15:39:07 +0000
Subject: note 65189 deleted from language.control-structures by bjori
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-109751@lists.php.net to get a copy of this message
Note Submitter: mambo_jambo Reason: in docs ---- As Niels mentioned, PHP is (lazy) minimal-evaluative as C. If you want to evaluate all conditions (in some case one or more conditions is a function call and so on...) you can use the corresponding (to the logical operator) bitwise operator. Example: <?php if ($condition & some_function()) //do something ?> This way, even when $condition is false, some_function will be called. Liloubingo: ?: is an operator just as any other operator and you can use it the way you use any other operator (watching the rules ofcourse)...

« previous php.notes (#109751) next »