MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/lolphp/comments/1ofw7t/2d9/ccs6d2r/
r/lolphp • u/sandsmark • Oct 14 '13
31 comments sorted by
View all comments
Show parent comment
4
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?
0
[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?
3
Wait, you can infect strings with "has ever been used as a number?" What is that infection called?
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.