3 ms·
PHP does few things right, but it provides an `empty` function for documenting this use case - it will return true for empty strings, null, empty arrays, and un
by kibibu 11y ago
PHP does few things right, but it provides an `empty` function for documenting this use case - it will return true for empty strings, null, empty arrays, and unset variables, among others.
- icebraining 11y agoWhy is null "empty"? That seems worse than being implicit - it's misleading.
- kibibu 11y agoBecause there is nothing in it?