アレイA
Array
(
[0] => Array
(
[id] => 8
[name] => test1
)
[1] => Array
(
[id] => 4
[name] => test2
)
[2] => Array
(
[id] => 3
[name] => test3
)
)
アレイB
Array
(
[0] => Array
(
[id] => 3
[place] => madurai
)
[1] => Array
(
[id] => 4
[place] => Trichy
)
[2] => Array
(
[id] => 55
[place] => chennai
)
)
配列比較用のサンプルphpコードが必要です。配列では、キーペア(id)のコレクションが配列bのすべての配列キーペア(id)と比較されます。次の出力を取得したいと思います。
出力
Array
(
[0] => Array
(
[id] => 8
[name] => test1
[place] => empty
)
[1] => Array
(
[id] => 4
[name] => test2
[place] => Trichy
)
[2] => Array
(
[id] => 3
[name] => test3
[place] => madurai
)
)