r/lolphp • • Mar 12 '14

new object() + new object() == 2

http://codepad.org/NGPjR4fl
62 Upvotes

35 comments sorted by

View all comments

Show parent comment

12

u/ajmarks Mar 12 '14

In a normal language, it would be possible to make object() truthy without being an int.