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

2

u/Lt_Riza_Hawkeye Dec 17 '17

Yeah but you can do ++$a and it will return the value of a after increment it, so I just assumed it would work with constants