What is the nature of PHP in terms of logical operators? Suppose a
and b
are expressions:
if (a || b) { body }
Which of the following is true?
- PHP always evaluates truthfulness of a and b. (Oblivious nature), OR
- PHP doesn't evaluate truthfulness of b if a is true (Adaptive nature and memory optimized: PHP evaluates truthfulness of b only if a is false).