'Is this '??' is a operator in php or what it's called? Also is it used for empty() or isset() check? [duplicate]

$name = $username ?? '';

I don't know actually what is this ?? called?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source