php 对象合并

1,273 阅读1分钟
    $obj_merged = (object) array_merge((array) $obj1, (array) $arr2);