I've this array :
Array ( [0] => test1 [1] => test2 [2] => test3 [3] => [4] => test4 )
I want to check if any array item is empty or not, as you can see, there's en empty item into my array : [3] => [4] => test4
So I wrote this condition :
foreach ($array1 as $value) {
if(!isset($value)) {
echo "EMPTY";
} else {
echo "Not empty";
}
}
But it echo Not empty every time, there must have empty for one item
Thanks for your help !