3 thoughts on “Why I hate PHP”

  1. I think you need to use === (identity check) for that. Sill, I have no clue why would need to 0 be equal to null… I wonder if this is a bug or a feature. :P

    I guess to it’s best to use is_null() to avoid the PHP comparison oddities in situations such as this one.

Comments are closed.