How to use PHP Null Coalescing Operator

The null coalescing operator, which was introduced as a new feature in PHP 7, has many useful applications and can be used to replace the ternary operator and the isset function.