<?php
$text = "Аргентина манит негра";
$resultTrue = 'палиндром';
$resultFalse = 'не палиндром';
$halgLength = floor($length / 2);
for ($i = 0; $i < $halgLength; $i++) {
$symbol2 = mb_substr($text, -$halgLength + $i, 1); }
if ($symbol1 == $symbol2) {
echo "$resultTrue \n";
} else {
echo "$resultFalse \n";
}
IDw/cGhwCmVycm9yX3JlcG9ydGluZygtMSk7Cm1iX2ludGVybmFsX2VuY29kaW5nKCd1dGYtOCcpOwoKJHRleHQgICAgICAgID0gItCQ0YDQs9C10L3RgtC40L3QsCDQvNCw0L3QuNGCINC90LXQs9GA0LAiOwokcmVzdWx0VHJ1ZSAgPSAn0L/QsNC70LjQvdC00YDQvtC8JzsKJHJlc3VsdEZhbHNlID0gJ9C90LUg0L/QsNC70LjQvdC00YDQvtC8JzsKCiR0ZXh0ID0gc3RyX3JlcGxhY2UoIiAiLCAiIiwgJHRleHQpOwokdGV4dCA9IG1iX3N0cnRvbG93ZXIoJHRleHQpOwoKCiRsZW5ndGggICAgID0gbWJfc3RybGVuKCR0ZXh0KTsKJGhhbGdMZW5ndGggPSBmbG9vcigkbGVuZ3RoIC8gMik7Cgpmb3IgKCRpID0gMDsgJGkgPCAkaGFsZ0xlbmd0aDsgJGkrKykgewogICAgJHN5bWJvbDEgPSBtYl9zdWJzdHIoJHRleHQsICRpLCAxKTsKICAgICRzeW1ib2wyID0gbWJfc3Vic3RyKCR0ZXh0LCAtJGhhbGdMZW5ndGggKyAkaSwgMSk7Cn0KCgppZiAoJHN5bWJvbDEgPT0gJHN5bWJvbDIpIHsKICAgIGVjaG8gIiRyZXN1bHRUcnVlIFxuIjsKfSBlbHNlIHsKICAgIGVjaG8gIiRyZXN1bHRGYWxzZSBcbiI7Cn0g