<?php
$text = "А РоЗа УпаЛ а нА Ла пу Азо ра";
$result = 'палиндром';
$k=0;
$res;
$halfLength = floor($length/2);
for($i=0;$i<$halfLength;$i++) {
$res = $length_n-$i-1;
$k=$k+1;
} else {
$k=0;
}
}
if ($k==$halfLength) {
echo $result;
} else {
echo "Нет!";
}
PD9waHAKCmVycm9yX3JlcG9ydGluZygtMSk7Cm1iX2ludGVybmFsX2VuY29kaW5nKCd1dGYtOCcpOwoKJHRleHQgPSAi0JAg0KDQvtCX0LAg0KPQv9Cw0JsgICAgICDQsCAg0L3QkCDQm9CwINC/0YMg0JDQt9C+INGA0LAiOwokcmVzdWx0ID0gJ9C/0LDQu9C40L3QtNGA0L7QvCc7CiRsZW5ndGggPSBtYl9zdHJsZW4oJHRleHQpOwokaz0wOwokbG93ID0gbWJfc3RydG9sb3dlcigkdGV4dCk7CiRyZXM7CiRuX3RleHQgPSBzdHJfcmVwbGFjZSgiICIsIiIsICRsb3cpOwoKJGhhbGZMZW5ndGggPSBmbG9vcigkbGVuZ3RoLzIpOwokbGVuZ3RoX24gPSBtYl9zdHJsZW4oJG5fdGV4dCk7Cgpmb3IoJGk9MDskaTwkaGFsZkxlbmd0aDskaSsrKSB7CgkkcmVzID0gJGxlbmd0aF9uLSRpLTE7CglpZiAobWJfc3Vic3RyKCRuX3RleHQsJGksMSk9PW1iX3N1YnN0cigkbl90ZXh0LCRyZXMsMSkpIHsKCQkkaz0kaysxOwoJfSBlbHNlIHsKCQkkaz0wOwoJfQp9CgoKCmlmICgkaz09JGhhbGZMZW5ndGgpIHsKCWVjaG8gJHJlc3VsdDsKfSBlbHNlIHsKCWVjaG8gItCd0LXRgiEiOwp9