<?php
$text = "Аргентина манит негрт";
$result = "палиндром";
$halfLength = floor($length / 2);
for ($i = 0; $i <= $halfLength; $i++) {
echo "{$tx} и {$xt}.\n";
};
if ($tx == $xt) {
echo "Проверка завершена, данная фраза - {$result}.\n";
} elseif ($tx != $xt) {
echo "Проверка завершена, данная фраза не является палиндромом.\n";
}
// your code goes here
PD9waHAKZXJyb3JfcmVwb3J0aW5nKC0xKTsKbWJfaW50ZXJuYWxfZW5jb2RpbmcoJ3V0Zi04Jyk7CgokdGV4dCA9ICLQkNGA0LPQtdC90YLQuNC90LAg0LzQsNC90LjRgiDQvdC10LPRgNGCIjsKJHJlc3VsdCA9ICLQv9Cw0LvQuNC90LTRgNC+0LwiOwokbFRleHQgPSBtYl9zdHJ0b2xvd2VyKCR0ZXh0KTsKJHRleHQgPSBzdHJfcmVwbGFjZSgiICIsICIiLCAkbFRleHQpOwoKCiRsZW5ndGggPSBtYl9zdHJsZW4oJHRleHQpOwokaGFsZkxlbmd0aCA9IGZsb29yKCRsZW5ndGggLyAyKTsKCmZvciAoJGkgPSAwOyAkaSA8PSAkaGFsZkxlbmd0aDsgJGkrKykgewoJJHR4ID0gbWJfc3Vic3RyKCR0ZXh0LCAkaSwgMSk7CgkkeHQgPSBtYl9zdWJzdHIoJHRleHQsICgtMSAtJGkpLCAxKTsKICAgIGVjaG8gInskdHh9INC4IHskeHR9LlxuIjsKfTsKCmlmICgkdHggPT0gJHh0KSB7CgllY2hvICLQn9GA0L7QstC10YDQutCwINC30LDQstC10YDRiNC10L3QsCwg0LTQsNC90L3QsNGPINGE0YDQsNC30LAgLSB7JHJlc3VsdH0uXG4iOwp9IGVsc2VpZiAoJHR4ICE9ICR4dCkgewoJZWNobyAi0J/RgNC+0LLQtdGA0LrQsCDQt9Cw0LLQtdGA0YjQtdC90LAsINC00LDQvdC90LDRjyDRhNGA0LDQt9CwINC90LUg0Y/QstC70Y/QtdGC0YHRjyDQv9Cw0LvQuNC90LTRgNC+0LzQvtC8LlxuIjsKfQoJCi8vIHlvdXIgY29kZSBnb2VzIGhlcmU=