Re: Expression evaluation - how is it done?

From: Date: Thu, 18 Mar 2004 12:12:09 +0000
Subject: Re: Expression evaluation - how is it done?
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-23180@lists.php.net to get a copy of this message
It's done the lazy way.. If the whole expression can't return true, it's not nessecary to evaluate the right side of the && operator.. In other words, my_bool_function will never be called... See the manual for more.. -- // DvDmanDT MSN: dvdmandt¤hotmail.com Mail: dvdmandt¤telia.com "B.A.T. Svensson" <B.A.T.Svensson@lumc.nl> skrev i meddelandet news:1079610737.30259.20.camel@ander... > Does PHP uses the same expression evaluation as in C/C++? > > This questions also consider expression with function > that returns booleans, typical: > > > if (false && my_bool_function()) > > > Will my_bool_function() be evaluated or not in this case?

« previous php.windows (#23180) next »