PHP Empty Multidimensional Arrays

Discovered today that running empty() on a multidimensional array returns false.

To get around this, I propose using array_filter on the multidimensional array first.  I’m betting this will not work for an array within an array within an array, but it seems to work fine for an array within an array.


Leave a Reply

Your email address will not be published. Required fields are marked *