News for hackers. Stuff that matters.
Re:PHP solves problems. Oh, and you can program with it too by 10098 on Friday June 29, 2012 @08:02PM (#4179814)
I know about ===. I do understand how type conversion works. I just don't think that it works "correctly". Converting "0" to 0 implicitly seems completely illogical to me. A string is not a number.
Re:PHP solves problems. Oh, and you can program with it too by dr42 on Saturday June 30, 2012 @03:28AM (#4181007)
"a string is not a number"

Well then use ===, but when a string contains numbers then php will do the type conversion for you. It's a convenience.

It may not work correctly by your definition but it's pretty intuitive and useful the way it is.