i have array1 with following content
array(
'banana',
'apple',
'orange');
and i have a different associative array2 with content and prices of items
array('banana' => '1.45',
'apple' => '2.99',
'carrot' => '1.99',
'orange' => '0.99',
'papaya' => '2.99');
how do i generate a final array, that combines the two, with their common parts, that i get this final result:
array('banana' => '1.45',
'apple' => '2.99',
'orange' => '0.99');