<?php
$text='А роза упала на лапу Азора';
echo "Исходный текст: $text\n";
$halfLength = floor($length/2);
for ($i=1; $i<=$halfLength; $i++)
if ($letter1 == $letter2) {
$result = 'палиндром';
} elseif ($letter1 != $letter2) {
$result = 'не палиндром';
break;
}
echo "Это $result";
?>
PD9waHAKCmVycm9yX3JlcG9ydGluZygtMSk7Cm1iX2ludGVybmFsX2VuY29kaW5nKCd1dGYtOCcpOwoKJHRleHQ9J9CQINGA0L7Qt9CwINGD0L/QsNC70LAg0L3QsCDQu9Cw0L/RgyDQkNC30L7RgNCwJzsKZWNobyAi0JjRgdGF0L7QtNC90YvQuSDRgtC10LrRgdGCOiAkdGV4dFxuIjsKCiR0ZXh0ID0gc3RyX3JlcGxhY2UoIiAiLCAiIiwgJHRleHQpOwokdGV4dCA9IG1iX3N0cnRvbG93ZXIoJHRleHQpOwoKJGxlbmd0aCA9IG1iX3N0cmxlbigkdGV4dCk7CiRoYWxmTGVuZ3RoID0gZmxvb3IoJGxlbmd0aC8yKTsKCmZvciAoJGk9MTsgJGk8PSRoYWxmTGVuZ3RoOyAkaSsrKQoJJGxldHRlcjEgPSBtYl9zdWJzdHIoJHRleHQsICRpLCAxKTsKCSRsZXR0ZXIyID0gbWJfc3Vic3RyKCR0ZXh0LCAtJGksIDEpOwoJaWYgKCRsZXR0ZXIxID09ICRsZXR0ZXIyKSB7CgkJJHJlc3VsdCA9ICfQv9Cw0LvQuNC90LTRgNC+0LwnOwoJfSBlbHNlaWYgKCRsZXR0ZXIxICE9ICRsZXR0ZXIyKSB7CgkJJHJlc3VsdCA9ICfQvdC1INC/0LDQu9C40L3QtNGA0L7QvCc7CgkJYnJlYWs7Cgl9CgkJCgplY2hvICLQrdGC0L4gJHJlc3VsdCI7Cgo/Pg==