Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
PHP
merge two objects in php
user1574017
Programming language:
PHP
2021-06-26 20:17:17
0
Q:
merge two objects in php
user75798
Code:
PHP
2021-07-08 17:07:51
array_merge((array)json_decode($data1), (array) json_decode($data2));
0
Tags
object
php
two
objects
Related
array merge in php
php join array
php array merge
php merge 2 arrays
php two arrays intersect
php array join
merge array php
merge two arrays one as key to another php
php merge array with same value
php array merge for associative arrays
array_combine function in php
php combine arrays
php find differences between two arrays
php combine values of two arrays
array merge with same key in php
php concatenate two variables
php array_merge
New to Communities?
Join the community