3 ms·
empty() is not a good idea. What if $f["x"] is an empty string ""? Or 0, or 0.0, or "0", or any of the other values for which it returns true?
by pavel_lishin 14y ago
empty() is not a good idea. What if $f["x"] is an empty string ""? Or 0, or 0.0, or "0", or any of the other values for which it returns true?
- jtreminio 14y agoIt completely depends on the use case. My point was, don't use @