3 ms·
PHP too. (if isset($foo) && $foo == 14) If $foo is not set the second boolean expression is not evaluated (short circuit evaluation). In fact, checking if is
by mastazi 11y ago
PHP too.
(if isset($foo) && $foo == 14)
If $foo is not set the second boolean expression is not evaluated (short circuit evaluation).
In fact, checking if isset followed by another boolean expression is very idiomatic in PHP.