<?php
$text = "А роза упала на лапу Азора";
$result = "палиндром";
$halfLength = floor ($length/2);
for ($i=0; $i<=$halfLength;$i++){
if ($ch1==$ch2){
echo "Проверка {$i}-ой буквы: {$ch1} совпадает с {$ch2}\n";
}
elseif($ch1!=$ch2) {
echo "Не совпадает {$ch1} не совпадает с {$ch2}";
break;
}
}
PD9waHAKZXJyb3JfcmVwb3J0aW5nKC0xKTsKbWJfaW50ZXJuYWxfZW5jb2RpbmcoJ3V0Zi04Jyk7CgokdGV4dCA9ICLQkCDRgNC+0LfQsCDRg9C/0LDQu9CwINC90LAg0LvQsNC/0YMg0JDQt9C+0YDQsCI7CiRyZXN1bHQgPSAi0L/QsNC70LjQvdC00YDQvtC8IjsKCiR0ZXh0ID0gbWJfc3RydG9sb3dlcigkdGV4dCk7CiR0ZXh0ID0gc3RyX3JlcGxhY2UoIiAiLCIiLCR0ZXh0KTsKJGxlbmd0aCA9IG1iX3N0cmxlbigkdGV4dCk7CiRoYWxmTGVuZ3RoID0gZmxvb3IgKCRsZW5ndGgvMik7Cgpmb3IgKCRpPTA7ICRpPD0kaGFsZkxlbmd0aDskaSsrKXsKCSRjaDE9bWJfc3Vic3RyKCR0ZXh0LCRpLDEpOwoJJGNoMj1tYl9zdWJzdHIoJHRleHQsKC0xLCRpKTsKaWYgKCRjaDE9PSRjaDIpewplY2hvICLQn9GA0L7QstC10YDQutCwIHskaX0t0L7QuSDQsdGD0LrQstGLOiB7JGNoMX0g0YHQvtCy0L/QsNC00LDQtdGCINGBIHskY2gyfVxuIjsKfQplbHNlaWYoJGNoMSE9JGNoMikgewoJZWNobyAi0J3QtSDRgdC+0LLQv9Cw0LTQsNC10YIgeyRjaDF9INC90LUg0YHQvtCy0L/QsNC00LDQtdGCINGBIHskY2gyfSI7CglicmVhazsKIH0KfQ==