In PHP when if statements are evaluated, is every condition checked before returning the final value, or as soon as the condition has no choice but to be false does it return?
For example, let's say I do this:
if ($a == 1 || $b == 1)
Now assume $a is 1. That means that regardless of the value of $b the condition will evalutate to true. Will PHP still check the value of $b and then return, or just return when it knows that there's no other possible outcome?