I have varieties of keys assume 10 in array and i care about only 3 keys
non empty keyA or non empty keyB or non empty keyC
the keys will always be present, but they may be empty, i just care about any of the above 3 keys which is not empty.
if any one of the 3 keys exists(first no matter which one) and is not empty , break the loop and get the key.
//example for KeyA
if (array_key_exists("keya", $array) && !empty($array['keya'])) {
return keya;
break;
}
is there a way to do it in elegant/advised/optimized way