News for hackers. Stuff that matters.
Re:A look at modern PHP by paulryanrogers on Tuesday May 05, 2020 @11:39AM (#23081202)
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.

Re:A look at modern PHP by ragnese on Tuesday May 05, 2020 @01:07PM (#23082254)
Is "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).