When doing a query in data bank I can receive both arrays as result:
Array
(
[] => 401
[BETA] => 223
[GAMMA] => 195
[DELTA] => 189
)
Array
(
[ALFA] => 294
[BETA] => 223
[GAMMA] => 195
[DELTA] => 189
)
What can I do to exclude the entirely line when the key is empty?
I tried something like this, but without success:
foreach($array as $key => $value){
if(array_key_exists($key, $value) && is_null($value[$key])) {
unset($key);
}
$array = $value;
}
Many thanks in advance!