Cyrillic transliteration in PHP

前端 未结 13 1478
心在旅途
心在旅途 2020-12-05 06:56

How to transliterate cyrillic characters into latin letters?

E.g. Главная страница -> Glavnaja stranica

This Transliteration PHP Extensi

13条回答
  •  悲&欢浪女
    2020-12-05 07:39

    You should try iconv() with the //TRANSLIT option.

    $trstr = iconv(, "ISO-8859-1//TRANSLIT", $src_str)
    

提交回复
热议问题