Question

In PHP, how to check if a multidimensional array is empty?


Annonce
Ad

Answer

if(count(array_filter($array)) == 0)
{
	// All values are empty
	...
}


[source]
# ID Query
0 9934 php check multidimensional array empty