Yes what the code does is very clear, but the function call is even a level up clearer, maybe you don't want to know how it does it's job, you just want an array of values in a column (array_column(array, column)). Personally I like comprehensions, but I tend to disguise them behind a function, it's much more clear to me. (but if I need the code to be super fast, I avoid using an extra function.)
HN user
MarceloRamos
8 karma
Posts0
Comments3
No posts found.
What PHP 5.5 might look like 14 years ago
"X-" deprecated for HTTP headers 14 years ago
Awesome, I don't know if I'll ever use it, but it's good to know.
C Finally Gets A New Standard 14 years ago
That's usually something that bothers me about C and it's libraries. I don't see the point in saving those bytes when we aren't really typing them anymore (because of modern text editors and IDEs.) Abbreviation makes the code look uglier and more cryptic, I know that appeals to some coders, but not me.