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