Re:How PHP's foreach works
by maratd on Thursday February 28, 2013 @03:12AM
(#5297671)
> But why would you ask a question like that in an interview?
Simple. You want to find out if they spend their time on HN. There hasn't been a single discussion on HN about PHP that doesn't mention that arrays in PHP are hash tables. Not one.
Simple. You want to find out if they spend their time on HN. There hasn't been a single discussion on HN about PHP that doesn't mention that arrays in PHP are hash tables. Not one.