<?php
$text = "Морда казака за кадром";
$result = "Это палиндром";
echo "{$lenght}\n";
for ($i = 0; $i< $lenght/2; $i++ ) {
$simbolTwo = mb_substr($text, $lenght-1-$i, 1);
echo "{$simbolOne}\n";
echo "{$simbolTwo}\n";
if ($simbolOne != $simbolTwo) {
$result = "Это не палиндром";
break;
}
}
echo "{$result}";
?>
PD9waHAKCmVycm9yX3JlcG9ydGluZygtMSk7Cm1iX2ludGVybmFsX2VuY29kaW5nKCd1dGYtOCcpOwoKJHRleHQgPSAi0JzQvtGA0LTQsCDQutCw0LfQsNC60LAg0LfQsCDQutCw0LTRgNC+0LwiOwoKJHRleHQgPSBtYl9zdHJ0b2xvd2VyKCR0ZXh0KTsKCiR0ZXh0ID0gc3RyX3JlcGxhY2UoIiAiLCAiIiwgJHRleHQpOwoKJHJlc3VsdCA9ICLQrdGC0L4g0L/QsNC70LjQvdC00YDQvtC8IjsKCiRsZW5naHQgPSBtYl9zdHJsZW4oJHRleHQpOwoKZWNobyAieyRsZW5naHR9XG4iOwoKZm9yICgkaSA9IDA7ICRpPCAkbGVuZ2h0LzI7ICRpKysgKSB7Cgkkc2ltYm9sT25lID0gbWJfc3Vic3RyKCR0ZXh0LCAkaSwgMSk7Cgkkc2ltYm9sVHdvID0gbWJfc3Vic3RyKCR0ZXh0LCAkbGVuZ2h0LTEtJGksIDEpOwogICAgCiAgICBlY2hvICJ7JHNpbWJvbE9uZX1cbiI7CiAgICBlY2hvICJ7JHNpbWJvbFR3b31cbiI7CiAgICAKCWlmICgkc2ltYm9sT25lICE9ICRzaW1ib2xUd28pIHsKCQkkcmVzdWx0ID0gItCt0YLQviDQvdC1INC/0LDQu9C40L3QtNGA0L7QvCI7CgkJYnJlYWs7Cgl9Cn0KCmVjaG8gInskcmVzdWx0fSI7Cgo/Pg==