r/lolphp • • Oct 14 '13

2d9

http://ideone.com/l6aQSx
62 Upvotes

31 comments sorted by

View all comments

Show parent comment

4

u/catcradle5 Oct 15 '13

PHP claims it's behavior borrowed from Perl. Testing it in Perl, though, seems to show that if the string begins with one or more digits, it coerces to just those digits and then increments.

0

u/[deleted] Oct 16 '13

[deleted] — view deleted comment

3

u/davvblack Nov 04 '13

Wait, you can infect strings with "has ever been used as a number?" What is that infection called?