<?php
$mapper = [
10014869 => "A",
10010380 => "B",
10112932 => "C",
10113908 => "D",
10115620 => "E",
10014876 => "F",
10017457 => "G",
10010397 => "H"
];
$array = [
1 => 10014869,
2 => 10014869,
3 => 10010380,
4 => 10112932,
5 => 10112932,
6 => 10113908,
7 => 10115620,
8 => 10014876,
9 => 10017457,
10 => 10010397,
];
foreach($array as $key => $value) {
$array[$key] = $mapper[$value];
}
print_r($array);
preferences:
23.16 ms | 404 KiB | 5 Q