<?php
$text ="А роза упала на лапу Азора";
$result = 'палиндром';
$halfLeght = floor($lenght / 2);
for ($i = 0; $i <= $halfLeght;$i++) {
echo "$result<br>";
}
}
?>
PD9waHAKCm1iX2ludGVybmFsX2VuY29kaW5nKCd1dGYtOCcpOwplcnJvcl9yZXBvcnRpbmcoLTEpOwoKJHRleHQgPSLQkCDRgNC+0LfQsCDRg9C/0LDQu9CwINC90LAg0LvQsNC/0YMg0JDQt9C+0YDQsCI7IAokcmVzdWx0ID0gJ9C/0LDQu9C40L3QtNGA0L7QvCc7CiAKICR0ZXh0ID0gbWJfc3RydG9sb3dlcigkdGV4dCk7CiAkdGV4dCA9IHN0cl9yZXBsYWNlKCIgIiwiIiwkdGV4dCk7CiAKCiAkbGVuZ2h0ID0gbWJfc3RybGVuKCR0ZXh0KTsKICRoYWxmTGVnaHQgPSBmbG9vcigkbGVuZ2h0IC8gMik7CiAKIGZvciAoJGkgPSAwOyAkaSA8PSAkaGFsZkxlZ2h0OyRpKyspIHsKIAoJaWYgKG1iX3N1YnN0cigkdGV4dCwwLDEwKSA9PSBtYl9zdWJzdHIoJHRleHQsLTEsLTEwKSkgewoJZWNobyAiJHJlc3VsdDxicj4iOwoJfQoJCiB9CgogCiAKID8+