Re:PHP WTF: A PHP Annoyance Posted Every Day
by rbanffy on Friday June 19, 2009 @10:19AM
(#665153)
daeken explained it quite well. From his post:
"As explained under 'read more', it's because 'test' will be cast to a number for comparison. Since 'test' isn't a number, it becomes 0, which is equivalent."
"As explained under 'read more', it's because 'test' will be cast to a number for comparison. Since 'test' isn't a number, it becomes 0, which is equivalent."