<?php
$text = "А роза упала на лапу Азора" ;
$result = 'палиндром' ;
$halfLength = floor ( $length / 2 ) ; echo "{$text1} \n " ;
$halfLength = floor ( $length / 2 ) ;
for ( $i = 0 ; $i <= $halfLength ; $i ++ ) {
if ( $f == $l ) {
echo "Win {$f} = {$l} {$result} \n " ;
} else { echo "Fail [$f $l ] не {$result} \n " ;
}
}
PD9waHAKCmVycm9yX3JlcG9ydGluZygtMSk7Cm1iX2ludGVybmFsX2VuY29kaW5nICgndXRmLTgnKTsKCiR0ZXh0ID0gItCQINGA0L7Qt9CwINGD0L/QsNC70LAg0L3QsCDQu9Cw0L/RgyDQkNC30L7RgNCwIjsKJHJlc3VsdCA9ICfQv9Cw0LvQuNC90LTRgNC+0LwnOwokdGV4dDEgPSBzdHJfcmVwbGFjZSgiICIsICIiLCBtYl9zdHJ0b2xvd2VyKCR0ZXh0KSk7CiRsZW5ndGggPSBtYl9zdHJsZW4oJHRleHQxKTsKJGhhbGZMZW5ndGggPSBmbG9vcigkbGVuZ3RoIC8gMik7CmVjaG8gInskdGV4dDF9XG4iOwoKJGxlbmd0aCA9IG1iX3N0cmxlbigkdGV4dDEpOwokaGFsZkxlbmd0aCA9IGZsb29yKCRsZW5ndGggLyAyKTsKCmZvciAoJGkgPSAwOyAkaSA8PSAkaGFsZkxlbmd0aDsgJGkrKyl7CgoJJGYgPSBtYl9zdWJzdHIoJHRleHQxLCAkaSAtIDEsIDEpOwoJJGwgPSBtYl9zdWJzdHIoJHRleHQxLCAtJGksIDEpOwoKCWlmICgkZiA9PSAkbCkgewoJCWVjaG8gIldpbiB7JGZ9ID0geyRsfSAgeyRyZXN1bHR9XG4iOwoJfSBlbHNlIHsgZWNobyAiRmFpbCBbJGYgJGxdINC90LUgeyRyZXN1bHR9IFxuIjsKfQp9