Добрый вечер, имею массив
[85] => Array
(
[id] => [85]
[DateTime] => [21.01.2021 00:00:57]
[Server] => [2]
[Faction] => [16]
[Player] => [Name_Surname]
[Property] => [42]
[Owner] => [12]
)
[86] => Array
(
[id] => [86]
[DateTime] => [21.01.2021 00:00:42]
[Server] => [2]
[Faction] => [14]
[Player] => [Name_Surname]
[Property] => [126]
[Owner] => [15]
)
Их по сути много будет.
Есть второй уже созданный мною
Как заменить значения Owner и Faction если они совпадают с значением в моем массиве?
$myArr = [
'[12]' => "One",
"[13]" => "Two",
"[14]" => "Three",
"[15]" => "Four",
"[16]" => "Five",
"[5]" => "Six",
"[6]" => "Seven",
"[8]" => "Eight"
];
К примеру
[Faction] => [16] должно стать вместо [16] - Five
[Owner] => [15] Должно стать вместо [15] - Four