Here i am having one array, using this array i have to get the index like which having null or empty values,i goggled it but i am not getting my expected answer,kindly  see below i have posted my expected answer.
print_r($val);
    Array
(
    [id] => 4 A
    [tripID] => 
    [startFrom] => 1
    [limit] => 20
    [cabID] => 
)
Expected answer
- tripID
- cabID
 
    