<?php
$string = "ааа ааа ааа а";
$result = 'палиндром';
for($i = 1; $i <= $halflen; $i++) {
if ($masString[$i] =! $masString[-($i)]) {
echo "Строка не {$result}. \n";
break;
}
else {
echo "Пока что все хорошо";
if ($i == $halflen) {
echo "Строка - {$result}.\n";
}
}
}
?>
PD9waHAKCmVycm9yX3JlcG9ydGluZygtMSk7Cm1iX2ludGVybmFsX2VuY29kaW5nKCd1dGYtOCcpOwoKJHN0cmluZyA9ICLQsNCw0LAg0LDQsNCwINCw0LDQsCDQsCI7CiRyZXN1bHQgPSAn0L/QsNC70LjQvdC00YDQvtC8JzsKCiRzdHJpbmcgPSBtYl9zdHJ0b2xvd2VyKCRzdHJpbmcpOwokaGFsZmxlbiA9IGZsb29yKG1iX3N0cmxlbigkc3RyaW5nKS8yKTsKJG1hc1N0cmluZyA9IHByZWdfc3BsaXQoJy8vdScsICRzdHJpbmcpOwpmb3IoJGkgPSAxOyAkaSA8PSAkaGFsZmxlbjsgJGkrKykgewoJaWYgKCRtYXNTdHJpbmdbJGldID0hICRtYXNTdHJpbmdbLSgkaSldKSB7CgkJZWNobyAi0KHRgtGA0L7QutCwINC90LUgeyRyZXN1bHR9LiBcbiI7CgkJYnJlYWs7Cgl9CgllbHNlIHsKCQllY2hvICLQn9C+0LrQsCDRh9GC0L4g0LLRgdC1INGF0L7RgNC+0YjQviI7CgkJaWYgKCRpID09ICRoYWxmbGVuKSB7CgkJCWVjaG8gItCh0YLRgNC+0LrQsCAtIHskcmVzdWx0fS5cbiI7CgkJfQoJfQp9Cj8+