Hacker News new | past | comments | ask | show | jobs | submit login

Although isset() still returns false for null ;)



Which is a little weird, but cases where you'd want `isset` to treat variables intentionally set to null the same as variables that are entirely undeclared are considerably more frequent (just ran into one yesterday!) than cases where you'd need to carefully distinguish them.


It's also great at hiding bugs where you mistyped the variable name passed to isset(). ;)




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

Search: