<?php
$text = "а Роза упала на лапу Азора";
$result1 = "Палиндром";
$result0 = "Не палиндром";
$halfLeght = floor($leght/ 2);
for ($i = 0; $i <= $halfLeght; $i++) {
$end = -1 - $i;
if ($symbol != $endSymbol){
echo "$result0";
}
}
echo "{$result1} \n";
PD9waHAKCmVycm9yX3JlcG9ydGluZygtMSk7Cm1iX2ludGVybmFsX2VuY29kaW5nKCd1dGYtOCcpOwoKJHRleHQgPSAi0LAg0KDQvtC30LAg0YPQv9Cw0LvQsCDQvdCwINC70LDQv9GDINCQ0LfQvtGA0LAiOwokcmVzdWx0MSA9ICLQn9Cw0LvQuNC90LTRgNC+0LwiOwokcmVzdWx0MCA9ICLQndC1INC/0LDQu9C40L3QtNGA0L7QvCI7CgokdGV4dCA9IG1iX3N0cnRvbG93ZXIoJHRleHQpOwokdGV4dCA9IHN0cl9yZXBsYWNlKCIgIiwiIiwkdGV4dCk7CgokbGVnaHQgPSBtYl9zdHJsZW4oJHRleHQpOwokaGFsZkxlZ2h0ID0gZmxvb3IoJGxlZ2h0LyAyKTsKCmZvciAoJGkgPSAwOyAkaSA8PSAkaGFsZkxlZ2h0OyAkaSsrKSB7Cgkkc3ltYm9sID0gbWJfc3Vic3RyKCR0ZXh0LCAkaSwgMSk7CgkkZW5kID0gLTEgLSAkaTsKCSRlbmRTeW1ib2wgPSBtYl9zdWJzdHIoJHRleHQsICRlbmQsIDEpOwoJaWYgKCRzeW1ib2wgIT0gJGVuZFN5bWJvbCl7CgkJZWNobyAiJHJlc3VsdDAiOwoJCWV4aXQ7Cgl9Cn0KZWNobyAieyRyZXN1bHQxfSBcbiI7