<?php
$text = "hello world";
$test = "!([а-яё]+)?[a-z]([а-яё]+)?!ui";
$replace = array('a' => '[a]', 'c' => '[c]', 'e' => '[e]', 'o' => '[o]');
foreach($i as $key => $word) {
echo "Опечатка в слове $word: ";
$replaceWord = strtr($word, $replace); echo "$replaceWord\n";
}
}
?>
PD9waHAKIAplcnJvcl9yZXBvcnRpbmcoLTEpOwptYl9pbnRlcm5hbF9lbmNvZGluZygndXRmLTgnKTsKIAokdGV4dCA9ICJoZWxsbyB3b3JsZCI7CiAKJGkgPSBwcmVnX3NwbGl0KCIhW1wgXCxcLlw6MC05XSEiLCAkdGV4dCk7CiR0ZXN0ID0gIiEoW9CwLdGP0ZFdKyk/W2Etel0oW9CwLdGP0ZFdKyk/IXVpIjsKJHJlcGxhY2UgPSBhcnJheSgnYScgPT4gJ1thXScsICdjJyA9PiAnW2NdJywgJ2UnID0+ICdbZV0nLCAnbycgPT4gJ1tvXScpOwoKCglmb3JlYWNoKCRpIGFzICRrZXkgPT4gJHdvcmQpIHsKCgkJaWYocHJlZ19tYXRjaCgkdGVzdCwgJHdvcmQpKSB7CgkJCWVjaG8gItCe0L/QtdGH0LDRgtC60LAg0LIg0YHQu9C+0LLQtSAkd29yZDogIjsKCQkJJHJlcGxhY2VXb3JkID0gc3RydHIoJHdvcmQsICRyZXBsYWNlKTsKCQkJZWNobyAiJHJlcGxhY2VXb3JkXG4iOwoJCX0KCQoJfQoKPz4K