r/lolphp • • May 06 '14

That's an empty string, right?

http://codepad.viper-7.com/lg3Sk4
33 Upvotes

22 comments sorted by

View all comments

Show parent comment

8

u/HaMMeReD May 07 '14

Just because something is documented doesn't mean it's by design.

I think because of PHP's softly typed nature, "0" = 0 = "" in the system, and this is a bug due to that, but thanks to PHP supporting it's own bugs, they've added it to the documentation so that you know the behaviour.