<?php
$text = "А роза уgала на лапу Азора";
$result1 = "палиндром";
$result2 = "не палиндром";
$polovinabukv = floor($vsegobukv/2);
for ($i = 0; $i <= $polovinabukv; $i++) {
if ($bukva1 != $bukva2) {
echo "Результат: {$result2}";
break;
}
echo "Результат: {$result1}";
break;
}
PD9waHAKCm1iX2ludGVybmFsX2VuY29kaW5nKCd1dGYtOCcpOwoKJHRleHQgPSAi0JAg0YDQvtC30LAg0YNn0LDQu9CwINC90LAg0LvQsNC/0YMg0JDQt9C+0YDQsCI7CiRuaXogPSBtYl9zdHJ0b2xvd2VyKCR0ZXh0KTsKJGJlelByb2JlbG92ID0gc3RyX3JlcGxhY2UoJyAnLCcnLCRuaXopOwokcmVzdWx0MSA9ICLQv9Cw0LvQuNC90LTRgNC+0LwiOwokcmVzdWx0MiA9ICLQvdC1INC/0LDQu9C40L3QtNGA0L7QvCI7CiR2c2Vnb2J1a3YgPSBtYl9zdHJsZW4oJGJlelByb2JlbG92KTsKJHBvbG92aW5hYnVrdiA9IGZsb29yKCR2c2Vnb2J1a3YvMik7Cgpmb3IgKCRpID0gMDsgJGkgPD0gJHBvbG92aW5hYnVrdjsgJGkrKykgewoJCgkkYnVrdmExID0gbWJfc3Vic3RyKCRiZXpQcm9iZWxvdiwgJGksIDEpOwoJJGJ1a3ZhMiA9IG1iX3N1YnN0cigkYmV6UHJvYmVsb3YsIC0xLSRpLCAxKTsKCQoJaWYgKCRidWt2YTEgIT0gJGJ1a3ZhMikgewoJCgllY2hvICLQoNC10LfRg9C70YzRgtCw0YI6IHskcmVzdWx0Mn0iOwoJYnJlYWs7Cgl9IAoJCgllY2hvICLQoNC10LfRg9C70YzRgtCw0YI6IHskcmVzdWx0MX0iOwogICAgYnJlYWs7Cn0K