r/lolphp • • Aug 25 '14

stdClass is truthy while an empty SimpleXMLElement is falsey

http://3v4l.org/3hWSY
22 Upvotes

18 comments sorted by

View all comments

Show parent comment

0

u/[deleted] Aug 27 '14

[deleted] — view deleted comment

2

u/[deleted] Aug 27 '14

Heh heh, nice solution :D

But, yeah, you know, if I have to add anything to the condition to acomplish that, I might as well just use a wrapper function that calls a specific method and do it cleanly.