I have two arrays.
Example of the first array:
$arrayOne = array ( \'fruit\' => array( \'apples\' => array(), \'oranges\' => array(),
Check out array_keys from both arrays and then map the positions. Like array_keys for your arrays will give you -
$arrayKeyOne = array('fruit', 'vegetables', 'meat', 'other');
$arrayKeyTwo = array('frewt', 'vetchteblz', 'meat', 'mother');
Then a $arrayKeyTwo[array_search($one, $arrayKeyOne)] shuld give you what you want. Let know if this helps.