php: merge stdClass objects
Trabla:
php: merge stdClass objects
Solving:
Use
object to array
convertion + function
array_merge
Example:
$obj_merged = (object)
array_merge
( (array) $obj1, (array) $obj2 );
No comments:
Post a Comment
Newer Post
Older Post
Home
No comments:
Post a Comment