logoalt Hacker News

DJBunniestoday at 1:29 AM0 repliesview on HN

You're thinking of == which type coerces the non-empty string to boolean true.

PHP is not the only language that has this type of behavior.