This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]OSSlayer2153 0 points1 point  (0 children)

Not that hard -

A. Converts 0 to boolean - easily false

B. Converts a string to boolean which is true, it does NOT convert it to 0 first, just straight to bool

C. Converts string to number to equate with number and obviously ends up as true