IN PHP i have the following arrays.
And i have this array:
What i want to do is append the second array to the first one, i tried doing it like so:
end($array1);
foreach($array2 as $key => $value ){
$array1[$key] = $value;
}
With this result:
My question is; How do i put the the values and keys of the second array into the first one?
Answer: due to the answer of Manikiran i now got the following array as a result:




campaign_idwhile in the second one the key isid. Do you want to keep the key from the second array in the result?array1should look like?