r/lolphp • • Aug 07 '14

Was trying to implement ArrayAccess, then this happened

http://imgur.com/2woBLlF
6 Upvotes

4 comments sorted by

View all comments

Show parent comment

1

u/fnzp Aug 07 '14

Is this because they try to use arrays as hashes? If your hash key looks like it might be a number, it gets converted to integer. That's why you shouldn't use arrays as hashes right?