このような2つの配列があります
array (
[0] => Array
(
[search_terms] => Big Black Gay
[searches] => 1
)
[1] => Array
(
[search_terms] => Men Seeking Men Personals
[searches] => 1
)
)
このような別の配列
array (
[0] => Array
(
[search_terms] => Men Seeking Men Personals
[clicks] => 1
)
)
ループを使用せずに上記の 2 つの配列をマージするにはどうすればよいですか? これに使用できるphp機能はありますか?こういうアウトプットが欲しい
Array
(
[0] => Array
(
[search_terms] => Big Black Gay
[searches] => 1
[clicks] => 0
)
[1] => Array
(
[search_terms] => Men Seeking Men Personals
[searches] => 1
[clicks] => 1
)
)