$folderTarget) { echo '
' . $folderTarget . '
'; foreach ($langTargetArray as $key => $langTarget) { if (file_exists($folderTarget . $langTarget . '.json')) { $source = json_decode(file_get_contents($folderTarget . $langTarget . '.json'), true); file_put_contents($folderTarget . $langTarget . '.json', json_encode($source, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES)); echo 'Done...'; } } }