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()函數將陣列合併到一起,傳回一個聯合的陣列