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" <[EMAIL PROTECTED]> skrev i meddelandet
news:[EMAIL PROTECTED]
> 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?

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to