<?php
$text = "А роза упала на лапу Азора";
//$chars = preg_split('//', $text1, -1, PREG_SPLIT_NO_EMPTY);
$k=0;
for ($i=1;$i<=$hall;$i++){
if($symbol1 == $symbol2){
$k+=1;
}
}
if($k==$hall){
echo"Палиндром";
}
if($k!=$hall){
echo"Не палиндром";
}
PD9waHAKbWJfaW50ZXJuYWxfZW5jb2RpbmcgKCd1dGYtOCcpOwokdGV4dCA9ICLQkCDRgNC+0LfQsCDRg9C/0LDQu9CwINC90LAg0LvQsNC/0YMg0JDQt9C+0YDQsCI7CiR0ZXh0MT1tYl9zdHJ0b2xvd2VyKCR0ZXh0KTsKLy8kY2hhcnMgPSBwcmVnX3NwbGl0KCcvLycsICR0ZXh0MSwgLTEsIFBSRUdfU1BMSVRfTk9fRU1QVFkpOwokdGV4dEZpbmFsID0gc3RyX3JlcGxhY2UoIiAiLCIiLCR0ZXh0MSk7CiRjb3VudCA9IG1iX3N0cmxlbigkdGV4dEZpbmFsKTsKJGhhbGwgPSBmbG9vcigkY291bnQvMik7CiRrPTA7CmZvciAoJGk9MTskaTw9JGhhbGw7JGkrKyl7Cgkkc3ltYm9sMSA9IG1iX3N1YnN0cigkdGV4dEZpbmFsLCgkaS0xKSwxKTsKCSRzeW1ib2wyID0gbWJfc3Vic3RyKCR0ZXh0RmluYWwsKC0kaSksMSk7CglpZigkc3ltYm9sMSA9PSAkc3ltYm9sMil7CgkJJGsrPTE7Cgl9Cn0KaWYoJGs9PSRoYWxsKXsKCWVjaG8i0J/QsNC70LjQvdC00YDQvtC8IjsKCQp9CmlmKCRrIT0kaGFsbCl7CgllY2hvItCd0LUg0L/QsNC70LjQvdC00YDQvtC8IjsKfQo=