我有两个这样的数组
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
)
)
如何在不使用任何循环的情况下合并两个数组?任何 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
)
)