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?
Yes.
From my experience, it will work that way. I don't know if it's that way for every version or not, though.
Same thing for AND, too...
function1() AND function2()
If function1() comes out FALSE, then function2() isn't evaluated.
-- ---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
php|architect: The Magazine for PHP Professionals – www.phparch.com
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php