In PHP if you have the following code does $b get evaluated since $a will cause the if statement to return false?
$a = false;
$b = true;
if ($a && $b) {
// more code here
}
also if $b does get evaluated are there ever circumstances where a portion of an if statement may not be evaluated as the processor already knows that the value to be false?
$band then$a. In practice everyone already assumes that$bis not evaluated so it's doubtful that this change will ever happen, so as it stands now,$ais evaluated and if it's false then the wholeiffails (without evaluating$b)