$array1 = [
[
"ID" => "442505",
"Identyfikator użytkownika" => "748",
"Data utworzenia" => "10-01-2020 09:15:53",
"Data wysyłki" => "10-01-2020 09:15:53",
"Nadawca" => "Confronter",
"Treść" => "czesc",
"Wiadomości" => "1",
"Dostarczone" => "1",
"Koszt" => "1",
"Zwroty" => "0"
]
];
$array2 = [
[
"ID wysyłki" => "442505",
"Numer telefonu" => "511152133",
"Dostarczono" => "TAK",
"Data dostarczenia" => "10-01-2020 09:15:59",
"Powód odrzucenia" => "",
"Pobrano opłatę" => "TAK"
]
];
$newArray = return array_replace_recursive($array1, $array2);
//final
[
[
"ID" => "442505"
"Identyfikator użytkownika" => "748"
"Data utworzenia" => "10-01-2020 09:15:53"
"Data wysyłki" => "10-01-2020 09:15:53"
"Nadawca" => "Confronter"
"Treść" => "czesc"
"Wiadomości" => "1"
"Dostarczone" => "1"
"Koszt" => "1"
"Zwroty" => "0"
"ID wysyłki" => "442505"
"Numer telefonu" => "511152133"
"Dostarczono" => "TAK"
"Data dostarczenia" => "10-01-2020 09:15:59"
"Powód odrzucenia" => ""
"Pobrano opłatę" => "TAK"
]
]