[wp-hackers] Removing empty values from serialized array

Matt Jacob matt at mattjacob.com
Thu Aug 5 20:58:31 UTC 2010


On 8/5/10 12:22 PM, Mike Schinkel wrote:
> Shouldn't you be including an isset() too?

No. empty() is all-inclusive. It checks for NULL and other things that 
could reasonably evaluate to "nothing" in the wonderful world of PHP. 
(Note the hint of sarcasm from this Java developer.)

Matt


More information about the wp-hackers mailing list