<?php
$text='А хуй тебе в рот а не палиндром а';
echo "Исходный текст: $text\n";
$halfLength = floor($length/2);
for ($i=1; $i<=$halfLength; $i++)
if ($letter1 == $letter2) {
$result = 'палиндром';
} elseif ($letter1 != $letter2) {
$result = 'не палиндром';
break;
}
echo "Это $result";
PD9waHAKIAplcnJvcl9yZXBvcnRpbmcoLTEpOwptYl9pbnRlcm5hbF9lbmNvZGluZygndXRmLTgnKTsKIAokdGV4dD0n0JAg0YXRg9C5INGC0LXQsdC1INCyINGA0L7RgiDQsCDQvdC1INC/0LDQu9C40L3QtNGA0L7QvCDQsCc7CmVjaG8gItCY0YHRhdC+0LTQvdGL0Lkg0YLQtdC60YHRgjogJHRleHRcbiI7CiAKJHRleHQgPSBzdHJfcmVwbGFjZSgiICIsICIiLCAkdGV4dCk7CiR0ZXh0ID0gbWJfc3RydG9sb3dlcigkdGV4dCk7CiAKJGxlbmd0aCA9IG1iX3N0cmxlbigkdGV4dCk7CiRoYWxmTGVuZ3RoID0gZmxvb3IoJGxlbmd0aC8yKTsKIApmb3IgKCRpPTE7ICRpPD0kaGFsZkxlbmd0aDsgJGkrKykKCSRsZXR0ZXIxID0gbWJfc3Vic3RyKCR0ZXh0LCAkaSwgMSk7CgkkbGV0dGVyMiA9IG1iX3N1YnN0cigkdGV4dCwgLSRpLCAxKTsKCWlmICgkbGV0dGVyMSA9PSAkbGV0dGVyMikgewoJCSRyZXN1bHQgPSAn0L/QsNC70LjQvdC00YDQvtC8JzsKCX0gZWxzZWlmICgkbGV0dGVyMSAhPSAkbGV0dGVyMikgewoJCSRyZXN1bHQgPSAn0L3QtSDQv9Cw0LvQuNC90LTRgNC+0LwnOwoJCWJyZWFrOwoJfQogCiAKZWNobyAi0K3RgtC+ICRyZXN1bHQiOw==