<?php
$text = "к роза упала на лапу Азора";
$result = "палиндром";
$negativeResult = "не палиндром";
$from1 = 0;
$from2 = -1;
for ($i = 0; $i <= $length; $i ++) {
if ($letter1 == $letter2) {
echo "$letter1 - $letter2 \n";
$from1 ++;
$from2 --;
} else{
echo "$letter1 - $letter2 \n\n$negativeResult";
}
}
echo "$result";
PD9waHAKZXJyb3JfcmVwb3J0aW5nKC0xKTsKbWJfaW50ZXJuYWxfZW5jb2RpbmcoJ3V0Zi04Jyk7CgokdGV4dCA9ICLQuiDRgNC+0LfQsCDRg9C/0LDQu9CwINC90LAg0LvQsNC/0YMg0JDQt9C+0YDQsCI7CiRyZXN1bHQgPSAi0L/QsNC70LjQvdC00YDQvtC8IjsKJG5lZ2F0aXZlUmVzdWx0ID0gItC90LUg0L/QsNC70LjQvdC00YDQvtC8IjsKCiR0ZXh0ID0gbWJfc3RydG9sb3dlcigkdGV4dCk7CiR0ZXh0ID0gc3RyX3JlcGxhY2UoIiAiLCAiIiwgJHRleHQpOwoKJGxlbmd0aCA9IGZsb29yKG1iX3N0cmxlbigkdGV4dCkgLyAyKTsKJGZyb20xID0gMDsKJGZyb20yID0gLTE7Cgpmb3IgKCRpID0gMDsgJGkgPD0gJGxlbmd0aDsgJGkgKyspIHsKCQoJJGxldHRlcjEgPSBtYl9zdWJzdHIoJHRleHQsICRmcm9tMSwgMSk7CgkkbGV0dGVyMiA9IG1iX3N1YnN0cigkdGV4dCwgJGZyb20yLCAxKTsKCglpZiAoJGxldHRlcjEgPT0gJGxldHRlcjIpIHsKCQllY2hvICIkbGV0dGVyMSAtICRsZXR0ZXIyIFxuIjsKCSRmcm9tMSArKzsKCSRmcm9tMiAtLTsKCQoJfSBlbHNlewoJCWVjaG8gIiRsZXR0ZXIxIC0gJGxldHRlcjIgXG5cbiRuZWdhdGl2ZVJlc3VsdCI7CgkJZXhpdDsKCX0KCX0KCmVjaG8gIiRyZXN1bHQiOwo=