<?php
$text = "Петр иваныч уркал,маму, шыну. Петя что ты а даун?" ;
$regexp = '/((жы|шы)|(координально|сдесь|зделал|зделаю|зделан)|(,[а-яА-Я]|\\?[[а-яА-Я]|;[а-яА-Я]|![а-яА-Я])|(что)|^a$)/' ;
$empty = '/\\s/' ;
for ( $i = 0 ; $i <= ( count ( $words ) - 1 ) ; $i ++ ) {
echo "Здесь ошибка: \" {$words [$i ]}\" .\n " ;
} else {
echo "{$words [$i ]} - ошибки нет. \n " ;
}
}
} else {
echo "Текст написан без ошибок" ;
}
?>
IDw/cGhwIAoKZXJyb3JfcmVwb3J0aW5nKC0xKTsKbWJfaW50ZXJuYWxfZW5jb2RpbmcoJ3V0Zi04Jyk7CgokdGV4dCA9ICLQn9C10YLRgCDQuNCy0LDQvdGL0Ycg0YPRgNC60LDQuyzQvNCw0LzRgywg0YjRi9C90YMuINCf0LXRgtGPINGH0YLQviDRgtGLINCwINC00LDRg9C9PyI7CgokcmVnZXhwID0gJy8oKNC20Yt80YjRiyl8KNC60L7QvtGA0LTQuNC90LDQu9GM0L3QvnzRgdC00LXRgdGMfNC30LTQtdC70LDQu3zQt9C00LXQu9Cw0Y580LfQtNC10LvQsNC9KXwoLFvQsC3Rj9CQLdCvXXxcXD9bW9CwLdGP0JAt0K9dfDtb0LAt0Y/QkC3Qr118IVvQsC3Rj9CQLdCvXSl8KNGH0YLQvil8XmEkKS8nOwoKCgokZW1wdHkgPSAnL1xccy8nOwoKaWYgKHByZWdfbWF0Y2goJHJlZ2V4cCwgJHRleHQpKXsKCSR3b3JkcyA9IHByZWdfc3BsaXQoJGVtcHR5LCAkdGV4dCk7CgkKCWZvciAoJGkgPSAwOyAkaSA8PSAoY291bnQoJHdvcmRzKS0xKTsgJGkrKykKCXsKCQlpZiAocHJlZ19tYXRjaCgkcmVnZXhwLCAkd29yZHNbJGldKSl7CgkJCWVjaG8gItCX0LTQtdGB0Ywg0L7RiNC40LHQutCwOiBcInskd29yZHNbJGldfVwiLlxuIjsKCgkJIH1lbHNlIHsKCQkJZWNobyAieyR3b3Jkc1skaV19IC0g0L7RiNC40LHQutC4INC90LXRgi4gXG4iOwoJCQoJfSAKCX0KfWVsc2UgewoJZWNobyAi0KLQtdC60YHRgiDQvdCw0L/QuNGB0LDQvSDQsdC10Lcg0L7RiNC40LHQvtC6IjsKfQo/Pg==