<?php
$text = "Нажал кабан на баклажан";
for ($i=0; $i < $letters+1; $i++) {
$array[$i] = $letter;
}
$comparisson = "";
for ($i=$letters; $i > -1 ; $i--) {
$comparisson = $comparisson . $array[$i];
}
if ($text == $comparisson) {
echo "Это палиндром";
} else {
echo "Это не палиндром";
}
?>
PD9waHAKCmVycm9yX3JlcG9ydGluZygtMSk7CgptYl9pbnRlcm5hbF9lbmNvZGluZygndXRmLTgnKTsKCiR0ZXh0ID0gItCd0LDQttCw0Lsg0LrQsNCx0LDQvSDQvdCwINCx0LDQutC70LDQttCw0L0iOwoKJHRleHQgPSBtYl9zdHJ0b2xvd2VyKCR0ZXh0KTsKCiR0ZXh0ID0gc3RyX3JlcGxhY2UoIiAiLCAiIiwgJHRleHQpOwoKJGxldHRlcnMgPSBtYl9zdHJsZW4oJHRleHQpOwoKJGFycmF5ID0gYXJyYXkoKTsKCmZvciAoJGk9MDsgJGkgPCAkbGV0dGVycysxOyAkaSsrKSB7CiAgICAkbGV0dGVyID0gbWJfc3Vic3RyKCR0ZXh0LCAkaSwgMSk7IAoJJGFycmF5WyRpXSA9ICRsZXR0ZXI7Cn0KCiRjb21wYXJpc3NvbiA9ICIiOwoKZm9yICgkaT0kbGV0dGVyczsgJGkgPiAtMSA7ICRpLS0pIHsgCgkkY29tcGFyaXNzb24gPSAkY29tcGFyaXNzb24gLiAkYXJyYXlbJGldOwp9CgppZiAoJHRleHQgPT0gJGNvbXBhcmlzc29uKSB7CgllY2hvICLQrdGC0L4g0L/QsNC70LjQvdC00YDQvtC8IjsKfSBlbHNlIHsKCWVjaG8gItCt0YLQviDQvdC1INC/0LDQu9C40L3QtNGA0L7QvCI7Cn0KCj8+