One line, one integer. PHP will translate between them as needed, unless you use the "strict" operators:
(0 == '0')
(0 === '0')
In your case, you are comparing the integer 0 with the string "something." PHP converts the string "something" into an integer. If there are no numbers at all, it will be converted to an integer 0, which makes your comparison true.
source
share