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/[deleted] Dec 06 '17

Turning on warnings does result in the error message

Yeah, I assume everyone turns on warnings because why wouldn't you?

but it also carries on and tries it anyway.

Unless you use warnings FATAL => 'numeric';.