<?php
$text = "А роза тролл ло азаз Азора";
$result = "палиндром";
$halfLength = floor($length/ 2);
for ($i=0; $i<=$halfLength; $i++){
if($a!=$b){
echo "Результат: Не палиндром";
break;
}
else {
echo "Результат: {$result}\n";
break;
}
}
PD9waHAKZXJyb3JfcmVwb3J0aW5nKC0xKTsKbWJfaW50ZXJuYWxfZW5jb2RpbmcoJ3V0Zi04Jyk7CiR0ZXh0ID0gItCQINGA0L7Qt9CwINGC0YDQvtC70Lsg0LvQviDQsNC30LDQtyDQkNC30L7RgNCwIjsKJHJlc3VsdCA9ICLQv9Cw0LvQuNC90LTRgNC+0LwiOwokcSA9IHN0cnRvbG93ZXIoJHRleHQpOwokcSA9IHN0cl9yZXBsYWNlKCcgJywnJywgJHRleHQpOwokbGVuZ3RoID0gbWJfc3RybGVuKCR0ZXh0KTsKJGhhbGZMZW5ndGggPSBmbG9vcigkbGVuZ3RoLyAyKTsKCmZvciAoJGk9MDsgJGk8PSRoYWxmTGVuZ3RoOyAkaSsrKXsKCSRhPW1iX3N1YnN0cigkcSwwKTsKCSRiPW1iX3N1YnN0cigkcSwtMjUpOwoJaWYoJGEhPSRiKXsKCQllY2hvICLQoNC10LfRg9C70YzRgtCw0YI6INCd0LUg0L/QsNC70LjQvdC00YDQvtC8IjsKCQlicmVhazsKCQoJfQoJZWxzZSB7CgllY2hvICLQoNC10LfRg9C70YzRgtCw0YI6IHskcmVzdWx0fVxuIjsKCWJyZWFrOwp9Cn0=