PHP Null Coalescing Operator

Until recently, I often found myself using conditional logic with isset() in cases like the following: or perhaps using a ternary: The above examples work just fine, and if you’re using an older version of PHP, these might be some of your best options. However, users of PHP 7.0 and newer can take advantage of …