Answers for "merge array to object php"

PHP
1

merge two objects in php

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

php combine arrays

$output = array_merge($array1, $array2);
Posted by: Guest on June-03-2020

Browse Popular Code Answers by Language