<?php
$text = 'А роза упала на лапу Азора';
$result = "Палиндром, красава";
$halfLenght = floor($lenght / 2);
for ($i = 0; $i <= $halfLenght; $i ++){
$otherSide = $lenght - $i;
if ($symbol1 != $symbol2){
echo "Это не палиндром";
break;
} else {
echo $result;
}
}
PD9waHAKZXJyb3JfcmVwb3J0aW5nKC0xKTsKbWJfaW50ZXJuYWxfZW5jb2RpbmcoJ3V0Zi04Jyk7CgokdGV4dCA9ICfQkCDRgNC+0LfQsCDRg9C/0LDQu9CwINC90LAg0LvQsNC/0YMg0JDQt9C+0YDQsCc7CiRyZXN1bHQgPSAi0J/QsNC70LjQvdC00YDQvtC8LCDQutGA0LDRgdCw0LLQsCI7CgoKJHRleHQgID0gc3RyX3JlcGxhY2UoJyAnLCAnJywgJHRleHQpOwokdGV4dCA9IG1iX3N0cnRvbG93ZXIoJHRleHQpOwoKJGxlbmdodCA9IG1iX3N0cmxlbigkdGV4dCk7CiRoYWxmTGVuZ2h0ID0gZmxvb3IoJGxlbmdodCAvIDIpOwoKCmZvciAoJGkgPSAwOyAkaSA8PSAkaGFsZkxlbmdodDsgJGkgKyspewoJJHN5bWJvbDEgPSBtYl9zdWJzdHIoJHRleHQsICRpLCAxKTsKCSRvdGhlclNpZGUgPSAkbGVuZ2h0IC0gJGk7Cgkkc3ltYm9sMiA9IG1iX3N1YnN0cigkdGV4dCwgJG90aGVyU2lkZSwgMSk7CglpZiAoJHN5bWJvbDEgIT0gJHN5bWJvbDIpewoJCWVjaG8gItCt0YLQviDQvdC1INC/0LDQu9C40L3QtNGA0L7QvCI7CgkJYnJlYWs7Cgl9IGVsc2UgewoJCWVjaG8gJHJlc3VsdDsKCX0KfQo=