I have the following main array called $m
Array
(
[0] => Array
(
[home] => Home
)
[1] => Arra
Assuming keys in the sub arrays are unique you can
Example like so:
$options = array('about_us', 'enquiry_form');
$values = array_intersect_key(
call_user_func_array('array_merge', $m), // Merge all subarrays
array_flip($options) // Make values in options keys
);
print_r($values);
which results in:
Array
(
[about_us] => About Us
[enquiry_form] => Products
)