Follow along with the video below to see how to install our site as a web app on your home screen.
Бележка: This feature may not be available in some browsers.
$text = "М1тя96";
function toLatin($str)
{
$str = str_replace("M","m",$str);
$str = str_replace("1","1",$str);
$str = str_replace("т","t",$str);
$str = str_replace("я","q",$str);
return $str
}
echo toLatin($text);
$bg = array('а','б','в','г','д');
$en = array('a','b','v','g','d');
$str = "a b в г д";
for($i=0; $i <= count($bg); $i++)
{
$str = str_replace($bg[$i],$en[$i],$str);
}
echo $str;
$map = array(
'а' => 'a',
'б' => 'b',
'в' => 'v',
'г' => 'g',
'д' => 'd'
);
//$result ще бъде "tekst na kirilica
$result = strtr("текст на кирилица", $map);