Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
ericpp
on Sept 15, 2024
|
parent
|
context
|
favorite
| on:
Why I avoid using empty() in PHP? A Closer Look
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: