kkreft
2/27/2014 - 1:56 PM

PHP merge object

$obj_merged = (object) array_merge((array) $obj1, (array) $obj2);