<?php
$text = "А роза упала на лапу Азора";
$result = 'палиндром';
$resultTrue = 'палиндром';
$resultFalse = 'не палиндром';
echo "{$text1}\n";
$halfLength = floor($length/ 2);
for ($i = 0; $i <= $halfLength; $i++) {
if ($symbol1 == $symbol2) {
echo "Результат проверки - {$resultFalse}";
break;
}
else {
echo "Результат проверки - {$resultTrue}";
break;
}
}
PD9waHAKZXJyb3JfcmVwb3J0aW5nKC0xKTsKbWJfaW50ZXJuYWxfZW5jb2RpbmcoInV0Zi04Iik7CiR0ZXh0ID0gItCQINGA0L7Qt9CwINGD0L/QsNC70LAg0L3QsCDQu9Cw0L/RgyDQkNC30L7RgNCwIjsKJHJlc3VsdCA9ICfQv9Cw0LvQuNC90LTRgNC+0LwnOwoKJHJlc3VsdFRydWUgPSAn0L/QsNC70LjQvdC00YDQvtC8JzsKJHJlc3VsdEZhbHNlID0gJ9C90LUg0L/QsNC70LjQvdC00YDQvtC8JzsKCiR0ZXh0MSA9IHN0cl9yZXBsYWNlKCIgIiwiIiwkdGV4dCk7CiR0ZXh0MSA9IG1iX3N0cnRvbG93ZXIoJHRleHQxKTsKZWNobyAieyR0ZXh0MX1cbiI7CgokbGVuZ3RoID0gbWJfc3RybGVuKCR0ZXh0KTsKJGhhbGZMZW5ndGggPSBmbG9vcigkbGVuZ3RoLyAyKTsKCmZvciAoJGkgPSAwOyAkaSA8PSAkaGFsZkxlbmd0aDsgJGkrKykgewogICAgICAkc3ltYm9sMSA9IG1iX3N1YnN0cigkdGV4dDEsICRpLCAxKTsKICAgICAgJHN5bWJvbDIgPSBtYl9zdWJzdHIoJHRleHQxLCAkaSwgLTEpOwoKICAgIGlmICgkc3ltYm9sMSA9PSAkc3ltYm9sMikgewogICAgICAgZWNobyAi0KDQtdC30YPQu9GM0YLQsNGCINC/0YDQvtCy0LXRgNC60LggLSB7JHJlc3VsdEZhbHNlfSI7CiAgICAgICBicmVhazsKICAgIH0KIAogICAgZWxzZSB7CiAgICAgICBlY2hvICLQoNC10LfRg9C70YzRgtCw0YIg0L/RgNC+0LLQtdGA0LrQuCAtIHskcmVzdWx0VHJ1ZX0iOwogICAgICAgYnJlYWs7CiAgICB9CgoKfQoK