Have you ever try this :
if ("hello" == 0) echo "what's going on ?";
the condition is true because it will try to convert "hello" in an integer which is 0, so 0==0, so it's true
but if you try
if ("123" == 0) echo "what's going on ?";
this is false because "123" --> 123 and obviously 123 != 0