<?php
$text = "Аргентина манит негра";
$result = 'Это палиндром';
$resultN = "Это не палиндром";
$halfLength = floor($length/ 2);
for ($i = 0; $i <= $halfLength; $i++) {
if ($symbol == $symbolRev) {
echo "$symbol\n";
} if ($i = $halfLength) {
echo $result;
break;
} elseif ($symbol != $symbolRev) {
echo "$resultN";
break;
}
}
PD9waHAKCmVycm9yX3JlcG9ydGluZygtMSk7Cm1iX2ludGVybmFsX2VuY29kaW5nKCd1dGYtOCcpOwoKCiR0ZXh0ID0gItCQ0YDQs9C10L3RgtC40L3QsCDQvNCw0L3QuNGCINC90LXQs9GA0LAiOwokcmVzdWx0ID0gJ9Ct0YLQviDQv9Cw0LvQuNC90LTRgNC+0LwnOwokcmVzdWx0TiA9ICLQrdGC0L4g0L3QtSDQv9Cw0LvQuNC90LTRgNC+0LwiOwoKJHRleHQgPSBtYl9zdHJ0b2xvd2VyKCR0ZXh0KTsKJHRleHQgPSBzdHJfcmVwbGFjZSgnICcsICcnLCAkdGV4dCk7CgokbGVuZ3RoID0gbWJfc3RybGVuKCR0ZXh0KTsKJGhhbGZMZW5ndGggPSBmbG9vcigkbGVuZ3RoLyAyKTsKCmZvciAoJGkgPSAwOyAkaSA8PSAkaGFsZkxlbmd0aDsgJGkrKykgIHsKCSRzeW1ib2wgPSBtYl9zdWJzdHIoJHRleHQsICRpLCAxKTsKCSRzeW1ib2xSZXYgPSBtYl9zdWJzdHIoJHRleHQsIC0kaSsrLCAxKTsKCQoJaWYgKCRzeW1ib2wgPT0gJHN5bWJvbFJldikgewogICBlY2hvICIkc3ltYm9sXG4iOwogICAKfSBpZiAoJGkgPSAkaGFsZkxlbmd0aCkgewogICBlY2hvICRyZXN1bHQ7CiAgIGJyZWFrOwp9IGVsc2VpZiAoJHN5bWJvbCAhPSAkc3ltYm9sUmV2KSB7CgllY2hvICIkcmVzdWx0TiI7CglicmVhazsKfQp9