SyntaxFix
Write A Post
Hire A Developer
Questions
See the docs:
Since PHP 5.3, it is possible to leave out the middle part of the ternary operator. Expression expr1 ?: expr3 returns expr1 if expr1 evaluates to TRUE, and expr3 otherwise.
expr1 ?: expr3
expr1
TRUE
expr3