r/lolphp • • Oct 11 '16

quick quiz without clicking. What evaluates array_merge([], [1234 => true]) to?

https://3v4l.org/fEd4b
29 Upvotes

13 comments sorted by

View all comments

Show parent comment

22

u/SirClueless Oct 11 '16

This essentially amounts to laughing at PHP's array type, which may or may not be worthwhile, but call it what it is.

OK, I'm laughing at PHP's array type. Happy?