Only on later patches, and not documented. Not everyone will have them unless they update (which is advisable, but not always possible).
In this particular example, you’re right. Mapping is much more open and generic — you could do all sorts of work on the record before mapping to a new collection. With pluck you are only taking the two values.
The real thing to notice here is that you can create your keys — in fact, the original name was “mapToAssoc()”
Very well written. Thank you, as well, for saving my Sunday afternoon for something other than writing my own rebuttal. The more I read “PHP The Wrong Way”, the more I found myself shaking my head in disagreement.
I think his article was (generally) well-intended but could have been written as “Don’t make mindless decisions”.
Exactly! For example, take cars — ever since they made the new, completely computer-run engines that I no longer understand how to fix, I have been rendered incapable of knowing whether or not we should allow drunk driving & text driving, or if speed limits are even necessary anymore.
You are repeated the “new argument” that seems to be going around, and it is a ridiculous one.
This is very important — I know many young girls & women feel pressure to back away from saying, “No” for many societal or peer pressure reasons .
But I think far more important would be to write the same cartoon about a father teaching his sons what “No” means.
Great post, Calvin!
The High Deductible Health Plan is something few people seem to know about or consider, and is absolutely worth looking for. Properly taking tax deductions is something else people overlook.
You are a business and are essentially the same as that multi-national who manages to…
Can I jump in in the role of “get off my lawn”?
In the US, 80% of all small businesses fail within the first 18 months. That’s probably pretty normal world-wide. Nothing special about start ups.
I read a lot of “The digital world discovers this Great Truth” and nearly always respond - “Yep…