Skip to content

Latest commit

 

History

History
36 lines (20 loc) · 993 Bytes

README.md

File metadata and controls

36 lines (20 loc) · 993 Bytes

Transform Cyrillic to Latin

Simply transform Cyrillic to latin. Also you can use it for making a link

Usage

Just include "CyrToLat.php" file in you'r project and use it simply

Normal Cyrillic to Latin
echo CyrToLat('Неки текст на ћирилици');
//OUTPUT: Neki tekst na ćirilici
Cyrillic to Short Latin
echo CyrToLat('Неки текст на ћирилици', 'ShortLatin');
//OUTPUT: Neki tekst na cirilici
Cyrillic to Latin url
echo CyrToLat('Неки текст на ћирилици', 'url');
//OUTPUT: neki-tekst-na-cirilici
Cyrillic to Latin email
echo CyrToLat('емаил@домен.цом', 'email');
//OUTPUT: email(at)domen(dot)com

echo CyrToLat('jhon@example.com', 'email');
//OUTPUT: jhon(at)example(dot)com
JS version

@stojanovic -> Cyrillic to latin converter