I have arrays that looks like this:
$array1 = array(
'[email protected]' => array(
'peter' => 'Smith',
),
'[email protected]' => array(
'john' => 'Smith',
),
'[email protected]' => array(
'louis' => 'Smith',
),
'[email protected]' => array(
'jane' => 'Smith',
),
);
$array2 = array(
'0' => '[email protected]',
'1' => '[email protected]',
);
How do I remove the array elements in array1 that match array2?