<?php
$one = array(
'4158' => array(
'raw' => 'something',
'rendered' => 'something else',
),
'foo' => 'string',
'bar' => array(
'key' => 'value',
'baz' => 100,
),
);
$two = array(
'4158' => array(
'protected' => 'has a password',
),
'bar' => array(
'zzz' => 'yo',
),
'go' => 'Cubs',
);
$temp = $one + (array) $two;
var_dump( $temp );
preferences:
81.98 ms | 404 KiB | 5 Q