<?php
$text = "А роза упала на лапу Азора";
$halfLenght = floor ($lenght/2);
for ($i = 0; $i <= $halfLenght; $i++) {
$x=$lenght-($i);
if ($text[$i] == $text[$x]) {
$result = "polinom";
} else {
$result = "nepolinom";
break;
}
}
echo "$result";
PD9waHAKCmVycm9yX3JlcG9ydGluZygtMSk7Cm1iX2ludGVybmFsX2VuY29kaW5nICgndXRmLTgnKTsKCiR0ZXh0ID0gItCQINGA0L7Qt9CwINGD0L/QsNC70LAg0L3QsCDQu9Cw0L/RgyDQkNC30L7RgNCwIjsKCiR0ZXh0ID0gc3RyX3JlcGxhY2UoIiAiLCAiIiwgJHRleHQpOwokdGV4dCA9IG1iX3N0cnRvbG93ZXIgKCR0ZXh0KTsKCiRsZW5naHQgPSBtYl9zdHJsZW4gKCR0ZXh0KTsKJGhhbGZMZW5naHQgPSBmbG9vciAoJGxlbmdodC8yKTsKCmZvciAoJGkgPSAwOyAkaSA8PSAkaGFsZkxlbmdodDsgJGkrKykJewoJJHg9JGxlbmdodC0oJGkpOwoJaWYgKCR0ZXh0WyRpXSA9PSAkdGV4dFskeF0pCXsKCQkkcmVzdWx0ID0gInBvbGlub20iOwoJfSBlbHNlCXsKCQkkcmVzdWx0ID0gIm5lcG9saW5vbSI7CgkJYnJlYWs7Cgl9Cn0KCQplY2hvICIkcmVzdWx0IjsK