I\'m running a PHP script and continue to receive errors like:
Notice: Undefined variable: my_variable_name in C:\\wamp\\www\\mypath\\index.php on line 10
In PHP 7.0 it's now possible to use Null coalescing operator:
echo "My index value is: " . ($my_array["my_index"] ?? '');
Equals to:
echo "My index value is: " . (isset($my_array["my_index"]) ? $my_array["my_index"] : '');
PHP manual PHP 7.0