2 ms·
I've run into that numeric reindexing confusion. PHP arrays in general are so feature rich it's also easy to overuse them. The proliferation of Collection clas
by paulryanrogers 7y ago
I've run into that numeric reindexing confusion. PHP arrays in general are so feature rich it's also easy to overuse them.
The proliferation of Collection classes may be one side-effect of how poweful-yet-awkward they are.
- ragnese 7y agoIs "powerful" really even the right description? I can't even do a map + filter without looping through the array twice. Ew. I guess I'll just stick with the primitive foreach loop (which leaves a dangling allocated object after you use it... sigh).