What does double question mark (??) operator mean in PHP [duplicate]

This question already has answers here: PHP ternary operator vs null coalescing operator (14 answers) Closed 3 years ago. I was diving into Symfony framework (version 4) code and found this piece of code: $env = $_SERVER[‘APP_ENV’] ?? ‘dev’; I’m not sure what this actually does but I imagine that it expands to something like: … Read more