On Thu, Aug 10, 2017 at 5:21 PM, Andreas Hennings <andr...@dqxtech.net> wrote: > I found this RFC, describing a feature I wanted for a long time: > https://wiki.php.net/rfc/list_default_value > https://marc.info/?l=php-internals&m=144707619509724 > > I regularly want this kind of feature when unpacking a string with explode(): > > list($prefix, $suffix = NULL) = explode(':', $string); > if (NULL !== $suffix) { > ... > } > Agreed. This comes up for me every time I want to parse a text file (including about 30 minutes ago, as it happens).
+1 -Sara -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php