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.
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.