For "or" statements it does, but not && or xor. I don't know about you, but 
I wouldn't want lazy evaluation on a conditional statement involving "and".

The manual ref is 
http://www.php.ca/manual/en/language.operators.logical.php and the 
following page on operator precedence.

Have a great one - Miles Thompson
http://www.cqagroup.ca

At 09:53 AM 1/16/2002 +0100, Alexander Deruwe wrote:
>Hey all,
>
>Does PHP support lazy evaluation? Meaning that if:
>
>if (isset($HTTP_POST_VARS['submit'])
>         && $HTTP_POST_VARS['submit'] == 'create')
>
>does PHP stop evaluating after the first condition if $HTTP_POST_VARS is
>not set?
>
>(please CC me in replies)
>
>Thanks in advance,
>
>--
>Alexander Deruwe ([EMAIL PROTECTED])
>AQS-CarControl
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to