Re: [PHP] Do PHP boolean operators short circuit?

2003-09-20 Thread Curt Zirzow
* Thus wrote Jason Wong ([EMAIL PROTECTED]): On Saturday 20 September 2003 10:57, John W. Holmes wrote: [snip] From my experience, it will work that way. I don't know if it's that way for every version or not, though. manual Migrating from PHP/FI 2 to PHP 3 heh... i havn't seen a

[PHP] Do PHP boolean operators short circuit?

2003-09-19 Thread Dan Anderson
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 -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Do PHP boolean operators short circuit?

2003-09-19 Thread John W. Holmes
Dan Anderson wrote: 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

Re: [PHP] Do PHP boolean operators short circuit?

2003-09-19 Thread Jason Wong
On Saturday 20 September 2003 10:57, John W. Holmes wrote: [snip] From my experience, it will work that way. I don't know if it's that way for every version or not, though. manual Migrating from PHP/FI 2 to PHP 3 -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software