I looked around and can't quite find the answer for this, so I'm wondering if I contain an array such as this..
$array['foo']['bar'][1] = '';
$array['foo']['bar'][2] = '';
$array['foo']['bar'][3] = '';
$array['foo']['bar'][4] = '';
How can I check if all the values are empty? I tried doing the following:
if (empty($array['foo']['bar'])) {
// Array empty
}
But as expected that didn't work.
How can I do this?