Re:Five reasons why the PHP silence operator @ should be avo...
by narcissus on Thursday January 10, 2013 @01:09PM
(#5038595)
Or array_key_exists(), depending on exactly what you're hoping for :(
Re:Five reasons why the PHP silence operator @ should be avo...
by pavel_lishin on Thursday January 10, 2013 @04:52PM
(#5040023)
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?
No, it's not. There's built-in methods for that: isset() and empty().