>Hi,
>
>In PHP, you can write `$array['a']['b']['c'] ?? 'default';`. It works when 
>either null or inexistant index is encountered at any depth of the expression.
>
>—Claude

You're right, I did not know that. Thank you.
That basically replaces the need for my proposal, then.

Regards,
Mel

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

Reply via email to