PHP short circuit lazy evaluation, where is it in the php.net manual?

Closest thing I can find to an 'official' mention of PHP's short-circuit implementation: php.net/manual/en/language.operators.log....

2 It's written inside the code snippet. First comment: // foo() will never get called as those operators are short-circuit – zneak Jul 10 '10 at 21:39 Thanks for the help! It's not stated loud and clear, but it's written there and also with clear examples.

– Marco Demaio Jul 10 '10 at 21:53.

This is not an uncommon feature of expression evaluation. The PHP manual page on logical operators makes a passing reference to it in one of the illustrative examples though. Short circuit evaluation is a commonly exploited idiom, and you can rely on its continued support in the language, otherwise vast amounts of code would break!

But I Googled the web and also Googled specifically both the php.net site and the stackoverflow.com site. I know PHP does short circuit lazy evaluation when using and, or, &&, || operators, but where is it stated loud and clear in the PHP manual? I found only Wikipedia as the only 'trusted' source that say PHP does lazy evaluation on these operators.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions