This operand evaluates to left side if left side is truthy and to the right side otherwise. It works as if :
$expression1 ? $expression1 : $expression2
$expr1 ? $expr2 : $expr3;
$expr1 ?: $expr3;
This operand evaluates to left side if left side is truthy and to the right side otherwise. It works as if :
$expression1 ? $expression1 : $expression2
$expr1 ? $expr2 : $expr3;
$expr1 ?: $expr3;