<?php
$text = "Аргентина любит негра";
$result= "Палиндром";
$result2= "Не палиндром";
$halfLength = floor($length/2); for ($i=0; $i==$halfLength; $i++) {
$o=-$i-1;
echo "$comparison1 \n";
echo "$comparison2 \n";
if ($comparison1==$comparison2) {
$word1=$word1 . $comparison1;
$word1=$word1 . $comparison1;
} else {
echo "Результат: $result2";
}}
if($word1==$word2) {
echo "Результат: $result \n";
}
PD9waHAKIAptYl9pbnRlcm5hbF9lbmNvZGluZygndXRmLTgnKTsKIAokdGV4dCA9ICLQkNGA0LPQtdC90YLQuNC90LAg0LvRjtCx0LjRgiDQvdC10LPRgNCwIjsKJHJlc3VsdD0gItCf0LDQu9C40L3QtNGA0L7QvCI7CiRyZXN1bHQyPSAi0J3QtSDQv9Cw0LvQuNC90LTRgNC+0LwiOwokdGV4dCA9IG1iX3N0cnRvbG93ZXIoJHRleHQpOwogCiR0ZXh0ID0gc3RyX3JlcGxhY2UoIiAiLCIiLCR0ZXh0KTsKIAokbGVuZ3RoID0gbWJfc3RybGVuKCR0ZXh0KTsKJGhhbGZMZW5ndGggPSBmbG9vcigkbGVuZ3RoLzIpOwpmb3IgKCRpPTA7ICRpPT0kaGFsZkxlbmd0aDsgJGkrKykgewoJJG89LSRpLTE7CgkkY29tcGFyaXNvbjE9bWJfc3Vic3RyKCR0ZXh0LCRpLDEpOwogICAgJGNvbXBhcmlzb24yPW1iX3N1YnN0cigkdGV4dCwkbywxKTsKICAgIGVjaG8gIiRjb21wYXJpc29uMSBcbiI7CiAgICBlY2hvICIkY29tcGFyaXNvbjIgXG4iOwogaWYgKCRjb21wYXJpc29uMT09JGNvbXBhcmlzb24yKSB7CiAgICAkd29yZDE9JHdvcmQxIC4gJGNvbXBhcmlzb24xOwogICAgJHdvcmQxPSR3b3JkMSAuICRjb21wYXJpc29uMTsKICAgIH0gZWxzZSB7IAogCWVjaG8gItCg0LXQt9GD0LvRjNGC0LDRgjogJHJlc3VsdDIiOwogfX0KIGlmKCR3b3JkMT09JHdvcmQyKSB7CiAJZWNobyAi0KDQtdC30YPQu9GM0YLQsNGCOiAkcmVzdWx0IFxuIjsKIH0K