Skip to content

Instantly share code, notes, and snippets.

View yerbol89's full-sized avatar

Yerbol yerbol89

View GitHub Profile
@yerbol89
yerbol89 / gist:fa059951b6d46d67efbc
Created February 28, 2015 09:57
Kazakh and russian url convert
<?php
function translitURL($str)
{
$tr = array(
"А"=>"a","Б"=>"b","В"=>"v","Г"=>"g",
"Д"=>"d","Е"=>"e","Ё"=>"yo","Ж"=>"zh","З"=>"z","И"=>"i",
"Й"=>"j","К"=>"k","Л"=>"l","М"=>"m","Н"=>"n",
"О"=>"o","П"=>"p","Р"=>"r","С"=>"s","Т"=>"t",
"У"=>"u","Ф"=>"f","Х"=>"x","Ц"=>"c","Ч"=>"ch",