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