Hacker News new | ask | show | jobs
by pests 4641 days ago
As a PHP developer I entirely assume that is going to print 8. I'm sure every PHP developer has had it happen or ran across it in the manual: when strings are forced into int positions PHP uses the numbers from the front of the string. Its unexpected, but consistent.
1 comments

Keying it to an int via the tip of the string? Let's call it iceberg-typing.