Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It's a common mistake that newcomers to the language make. You assume empty is an empty string check when it's really a falsy check that is equivalent to: (!isset($var) || !$var)


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: