how to merge multiple object properties to another object in php code example
Example: merge two objects in php
array_merge((array)json_decode($data1), (array) json_decode($data2));
array_merge((array)json_decode($data1), (array) json_decode($data2));