6 ms·
Two wrong conclusions: === is infinitely better than empty() due to less glitchy behavior. don't use empty, ever. Numeric arrays in PHP are AS SLOW as associat
by ludovicurbain 14y ago
Two wrong conclusions:
=== is infinitely better than empty() due to less glitchy behavior. don't use empty, ever.
Numeric arrays in PHP are AS SLOW as associative array, that's pure fail and one of the reasons PHP::fannkuch is so slow.
- firlefans 14y agoThey're implemented using the same data structure and given the language semantics (keys can be any scalar type intermingled horribly), how would you improve that?