Re: Lazy evaluation?

From: Date: Wed, 16 Jan 2002 12:57:42 +0000
Subject: Re: Lazy evaluation?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-80689@lists.php.net to get a copy of this message
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 (aderuwe@aqs-carcontrol.be) AQS-CarControl -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net


« previous php.general (#80689) next »