> In practice, you can ignore E_NOTICE and php will happily treat null and 
> !isset() as the same thing in *most* cases, so that’s not a good indicator of 
> truthiness.


If you really believe that then this is all you need already:

    $database = $config['database'] ?: 'db';

Correct?

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to