4 ms·
PHP has this available as list[1] in a slightly more limited form. 1. http://php.net/list http://php.net/list
by Spoom 13y ago
PHP has this available as list[1] in a slightly more limited form.
1. http://php.net/list http://php.net/list
- deleted 13y ago[deleted]
- agumonkey 13y agoI think you found PHP's third good part. -> https://jeena.net/php-the-good-parts https://jeena.net/php-the-good-parts
- andyroid 13y agoThat was my first thought too. I never really cared for list() in PHP as I find it a somewhat confusing way of assigning variables, and judging by the examples given in the article, I actually preferred the clarity of the less "terse" variable assignments done the old way. Might just be habit though.
- Spoom 13y agoYeah, I never really got it either. Seemed "clever", and I usually try to avoid being too "clever" with code. Readability almost always wins.