The smart Trick of A-PHP That No One is Discussing
It is achievable to go away out the center part of the ternary operator. Expression expr1 ?: expr3 evaluates to the result of expr1 if expr1 evaluates to real, and expr3 usually. expr1 is simply evaluated after In cases like this.
Absolutely sure, the conditional operator evaluates to a little so