$typeMap = [
'rar' => 'winrar',
'zip' => 'winzip'
];
$files = [['type' => 'rar'], ['type' => 'zip'], ['type' => 'mp3']];
foreach ($files as $file) {
echo array_key_exists($file['type'], $typeMap) ? $typeMap[$file['type']] : $file['type'];
}
Выведет - winrarwinzipmp3