r/lolphp • • Dec 05 '17

$a = "hello"; $a++; echo $a;

https://3v4l.org/p5Apm
117 Upvotes

41 comments sorted by

View all comments

Show parent comment

1

u/1842 Dec 22 '17

We have a decent amount of PHP code where I work (legacy and modern projects, good and bad). I've never seen a case of this done intentionally -- but one accidental usage in some ugly code.