どうすれば目的の出力を得ることができますか? array1の「entry_id」がarray2の「entry_id」と同じでないかどうかを確認したい
どうやってやるの?私はarray_diff_keyで試しました..しかし、それはうまくいきませんでした
アレイ1
Array ( [0] => Array ( [entry_id] => 53242 [site_id] => 2 [channel_id] => 2 [author_id] => 5 [1] => Array ( [entry_id] => 76435 [site_id] => 8 [channel_id] => 8 [author_id] => 9
配列2
Array ( [0] => Array ( [entry_id] => 89764 [site_id] => 1 [channel_id] => 1 [author_id] => 5 [1] => Array ( [entry_id] => 53242[site_id] => 7 [channel_id] => 9 [author_id] => 1
array1 と array2 を互いに比較して、目的の出力を得たいと思います。
望ましい出力:
Array ( [0] => Array ( [entry_id] => 76434 [site_id] => 8 [channel_id] => 8 [author_id] => 9 [1] => Array ( [entry_id] => 76435 [site_id] => 8 [channel_id] => 8 [author_id] => 9