<?php
$text = "А роза упала на лапу Азоро\n";
$result = ' палиндром ';
echo "{$newText1}";
$halfLength = floor($length/ 2);
for ($i = 0; $i <= $halfLength; $i++) {
for ($y = $length; $y >= $halfLength; $y--) {
if ($i != $y) {
break;
}
}
}
echo "Результат: {$result}\n";
PD9waHAKCmVycm9yX3JlcG9ydGluZygtMSk7Cm1iX2ludGVybmFsX2VuY29kaW5nKCd1dGYtOCcpOwoKJHRleHQgPSAi0JAg0YDQvtC30LAg0YPQv9Cw0LvQsCDQvdCwINC70LDQv9GDINCQ0LfQvtGA0L5cbiI7CiRyZXN1bHQgPSAnINC/0LDQu9C40L3QtNGA0L7QvCAnOwoKCiRuZXdUZXh0ID0gbWJfc3RydG9sb3dlcigkdGV4dCk7CiRuZXdUZXh0MSA9IHN0cl9yZXBsYWNlKCIgIiwiIiwkbmV3VGV4dCk7CmVjaG8gInskbmV3VGV4dDF9IjsKCiRsZW5ndGggPSBtYl9zdHJsZW4oJHRleHQpOwokaGFsZkxlbmd0aCA9IGZsb29yKCRsZW5ndGgvIDIpOwoKZm9yICgkaSA9IDA7ICRpIDw9ICRoYWxmTGVuZ3RoOyAkaSsrKSB7Cglmb3IgKCR5ID0gJGxlbmd0aDsgJHkgPj0gJGhhbGZMZW5ndGg7ICR5LS0pIHsKCWlmICgkaSAhPSAkeSkgewoJYnJlYWs7IAoJfSAKCX0KfQplY2hvICLQoNC10LfRg9C70YzRgtCw0YI6IHskcmVzdWx0fVxuIjsgCg==