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