'а'=>'a','á'=>'a','b'=>'b','c'=>'c','č'=>'ch','d'=>'d', 'ď'=>'d','e'=>'e','é'=>'e','ě'=>'e', 'f'=>'f','g'=>'g','h'=>'h','i'=>'i','í'=>'i', 'j'=>'j','k'=>'k','l'=>'l','m'=>'m','n'=>'n', 'ň'=>'n','o'=>'o','ó'=>'o','p'=>'p','q'=>'q', 'ř'=>'r','s'=>'s','š'=>'sch','t'=>'t','ť'=>'t', 'ú'=>'u','ů'=>'u','v'=>'v','w'=>'w', 'x'=>'x','y'=>'y','ý'=>'y','z'=>'z','ž'=>'z' ); foreach($cz_en as $cz=>$en){ }
Чешский язык
Транслитерация
function lang_slug($string){ $slug = preg_replace ('/[^a-záčéěíňóřšťúůýž0-9\-\/]/u', '-', $string); 'а' => 'a', 'á' => 'a', 'b' => 'b', 'c' => 'c', 'č' => 'ch', 'd' => 'd', 'ď' => 'd', 'e' => 'e', 'é' => 'e', 'ě' => 'e', 'f' => 'f', 'g' => 'g', 'h' => 'h', 'i' => 'i', 'í' => 'i', 'j' => 'j', 'k' => 'k', 'l' => 'l', 'm' => 'm', 'n' => 'n', 'ň' => 'n', 'o' => 'o', 'ó' => 'o', 'p' => 'p', 'q' => 'q', 'ř' => 'r', 's' => 's', 'š' => 'sch', 't' => 't', 'ť' => 't', 'ú' => 'u', 'ů' => 'u', 'v' => 'v', 'w' => 'w', 'x' => 'x', 'y' => 'y', 'ý' => 'y', 'z' => 'z', 'ž' => 'z' ); foreach($cz_en as $cz=>$en){ } if (!$slug){ $slug = 'untitled'; } return $slug; }