Internally, PHP has the notion of packed arrays. These are arrays that have consecutive integer indices, e.g. ['foo', 'bar', 'baz'], with some additional caveats. The interesting thing is, that they are not implemented with a hash table, but with a contiguous list. I thought this would be interesting to know because it can give you a performance boost in some applications.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Internally, PHP has the notion of packed arrays. These are arrays that have consecutive integer indices, e.g. ['foo', 'bar', 'baz'], with some additional caveats. The interesting thing is, that they are not implemented with a hash table, but with a contiguous list. I thought this would be interesting to know because it can give you a performance boost in some applications.