I am in a very specific situation where I have an indexed array $name_array, which have 0 index but don't have values, as follow;
Array
(
[0] =>
)
I want to consider this array as empty, I've checked it in isset($name_array) and !empty($name_array) but this array is passing both condition. I don't know What condition should I apply to detect if this array has these kind of values then it is empty?
for eg;
if(/*some condition*/($name_array))
{
echo 'I am not empty';
}
else
{
echo 'I am empty';
}