I want to update the following array:
$old_array = array('c' => array( "a" => "1", "b" => "2"))
By adding the following array to it:
$new_array = array('cc' => array( "a" => "1", "b" => "2"))
My expected output is:
$update_array = array('c' => array( "a" => "1", "b" => "2"), 'cc' => array( "a" => "1", "b" => "2"))
How would I go about achieving this? Any help is appreciated.
array_merge();like$update_array = array_merge($old_array, $new_array);