Answers for "What is the best method to merge two PHP objects?"

PHP
1

merge two objects in php

array_merge((array)json_decode($data1), (array) json_decode($data2));
Posted by: Guest on April-26-2020

Code answers related to "What is the best method to merge two PHP objects?"

Browse Popular Code Answers by Language