<?php
$text = "А роза упала на лапу Азора" ;
$result = 'палиндром' ;
$halfLength = floor ( $length / 2 ) ;
for ( $i = 0 ; $i <= $halfLength ; $i ++ ) {
if ( $a == $b ) {
echo $result . "\n " ; echo "[ {$a} {$b} ]\n " ;
} else {
echo "ЭТО НЕ ПАЛИНДрОм!11\n " ; echo "[ {$a} {$b} ]\n " ;
}
}
PD9waHAKCmVycm9yX3JlcG9ydGluZyAoLTEpOwptYl9pbnRlcm5hbF9lbmNvZGluZyAoJ3V0Zi04Jyk7CgokdGV4dCA9ICLQkCDRgNC+0LfQsCDRg9C/0LDQu9CwINC90LAg0LvQsNC/0YMg0JDQt9C+0YDQsCI7CiRyZXN1bHQgPSAn0L/QsNC70LjQvdC00YDQvtC8JzsKCiR0ZXh0MT0gbWJfc3RydG9sb3dlcigkdGV4dCk7CiR0ZXh0Mj0gc3RyX3JlcGxhY2UoIiAiLCIiLCR0ZXh0MSk7CgokbGVuZ3RoID0gbWJfc3RybGVuICgkdGV4dDIpOwokaGFsZkxlbmd0aCA9IGZsb29yKCRsZW5ndGgvIDIpOwoKZm9yICgkaT0wOyAkaTw9ICRoYWxmTGVuZ3RoOyAkaSsrKSB7CgkKCSRhID0gbWJfc3Vic3RyKCR0ZXh0MiwgJGksIDEpOwoJJGIgPSBtYl9zdWJzdHIoJHRleHQyLCAtJGktMSwgMSk7CglpZiAoJGE9PSRiKSB7CiAgICBlY2hvICRyZXN1bHQuIlxuIjsgZWNobyAiWyB7JGF9IHskYn0gXVxuIjsKICAgIAogICAgfWVsc2UgewoJCWVjaG8gItCt0KLQniDQndCVINCf0JDQm9CY0J3QlNGA0J7QvCExMVxuIjtlY2hvICJbIHskYX0geyRifSBdXG4iOwoKfQp9