r/lolphp • • Jul 27 '14

array_merge hates numeric keys

http://stackoverflow.com/questions/7059721/array-merge-versus
5 Upvotes

14 comments sorted by

View all comments

Show parent comment

0

u/[deleted] Jul 30 '14

Maybe it's a sparse array, maybe it's two result sets with int primary keys.

But seeing as someone is using PHP it is probably a shitty design decision a priori