Gabungkan dua objek dalam PHP

array_merge((array)json_decode($data1), (array) json_decode($data2));
tsnl_incredible