<?php
$text = "А роза упала на лапу Азора";
$result = "палиндром";
$from = [' ' => ''];
$text = strtr($text, $from);
$halfLenght = floor($length / 2);
for ($i = 0; $i < $halfLenght; $i++) {
$k = ($i + 1) * -1;
$result = "не палиндром";
break;
}
}
echo "Результат: {$result}\n";
PD9waHAKZXJyb3JfcmVwb3J0aW5nKC0xKTsKbWJfaW50ZXJuYWxfZW5jb2RpbmcoJ3V0Zi04Jyk7CgokdGV4dCA9ICLQkCDRgNC+0LfQsCDRg9C/0LDQu9CwINC90LAg0LvQsNC/0YMg0JDQt9C+0YDQsCI7CiRyZXN1bHQgPSAi0L/QsNC70LjQvdC00YDQvtC8IjsKCiRmcm9tID0gWycgJyA9PiAnJ107CiR0ZXh0ID0gc3RydHIoJHRleHQsICRmcm9tKTsKJHRleHQgPSBtYl9zdHJ0b2xvd2VyKCR0ZXh0KTsKCiRsZW5ndGggPSBtYl9zdHJsZW4oJHRleHQpOwokaGFsZkxlbmdodCA9IGZsb29yKCRsZW5ndGggLyAyKTsKCmZvciAoJGkgPSAwOyAkaSA8ICRoYWxmTGVuZ2h0OyAkaSsrKSB7CgkkayA9ICgkaSArIDEpICogLTE7CglpZiAobWJfc3Vic3RyKCR0ZXh0LCAkaSwgMSkgIT0gbWJfc3Vic3RyKCR0ZXh0LCAkaywgMSkpewoJCSRyZXN1bHQgPSAi0L3QtSDQv9Cw0LvQuNC90LTRgNC+0LwiOwoJCWJyZWFrOwoJfQp9CgplY2hvICLQoNC10LfRg9C70YzRgtCw0YI6IHskcmVzdWx0fVxuIjs=