PHP: rfc:isset_ternary - 0 views
-
The short ternary operator, ?: provides a way to do this much more conveniently: $_GET['mykey'] ?: "". However, this is not good practise, as if the value does not exist it will raise an E_NOTICE.
-
The coalesce, or ??, operator is added, which returns the result of its first operand if it exists and is not NULL, or else its second operand.
-
chained
- ...3 more annotations...