I have two arrays one that has just one index which list id's. The other array has many indexes but I want to compare only the id index of both arrays which is index [0] I want to get only the rows that ids don't match and return those rows. Example:
$array1 = [
'12345',
'23457'
];
$array2 = [
[id => '12345', 'fake_data' => 'something'],
[id => '23457', 'more_data' => 'something else'],
[id => '76389','more_data' => 'something else 3'],
[id => '10293', 'more_data' => 'something else 4'],
[id => '09229', 'more_data' => 'something else 5']
];
The first array just have id's the other has ids place other data. I need to keep that data and only return the rows that don't match the first array. Help is very much appriciated.