Do PHP boolean operators short circuit?
| From: | Dan Anderson | Date: | Sat, 20 Sep 2003 02:53:50 +0000 |
| Subject: | Do PHP boolean operators short circuit? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-163264@lists.php.net to get a copy of this message | ||
I am learning perl and my book describes "boolean short circuiting".
Basically:
function1() OR function2();
(function2 never is evaluated if function1 is true).
Will this work in PHP for any function?
Thanks in advance,
-Dan