Array ( [0] => stdClass Object ( [id] => 1 [user] => test ) ) Array ( [0] => stdClass Object ( [addtime] => 2021-8-25 [password] => 123456 ) )
请问上面2个数组怎么把合并成以下的数组?能否给一下代码,谢谢了。
Array ( [0] => stdClass Object ( [id] => 1 [user] => test [addtime] => 2021-8-25 [password] => 123456 ) )
合并数组 array_merge()函数将数组合并到一起,返回一个联合的数组