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

empty() is an alias for 'isset($x) && $x', so this example is semantically identical to the previous one (since $x is always set). PHP doesn't have any special concept of "emptyness" to check for.



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

Search: