1
In the documentation PHP, about operators says:
// foo() will never be called because all the expression short circuit.
What does it mean to say that all expression is short-circuited? What happens to the script at runtime?
<?php
// --------------------
// foo() nunca será chamada porque toda a expressão sofre curto circuito
$a = (false && foo());
$b = (true || foo());
$c = (false and foo());
$d = (true or foo());
Qual a diferença entre “&&” e “||” e “and” e “or” em PHP? Qual usar?
– rray