<?php
$text="А роза упала на лапу Анора";
$text2=mb_strtolower($text);
$text3=str_replace(" ","",$text2);
function strrev_en($text4){
	$text4 = iconv('utf-8', 'windows-1251', $text4);
    $text4 = strrev($text4);
    $text4 = iconv('windows-1251', 'utf-8', $text4);
    return $text4;
}
  $text4=strrev_en($text3);
	if($text3==$text4){
		
	echo "Введённый текст - палиндром.";
	}
	else{
		
		echo "Введённый текст - не палиндром.";
	}

?>

// your code goes here