{% else-1 %}
Транслит и Ретранслит

                        
<?
function translit( $in )
{
$trans1 = array
( "JO", "ZH","CH","SH", "SCH" ,"JE" ,"JY" ,"
$trans2 = array
( "Ё" , "Ж","Ч" ,"Ш" ,"Щ" ,"Э" ,"Ю" ,"Я" , "ё"
return str_replace ( $trans1 ,
$trans2 , $in );
}
function retranslit ( $in )
{
$trans1 = array
( "'", '`' ,',' ,' ', "Ё" ,"Ж", "Ч","Ш" ,"Щ" ,"Э" , "
$trans2 = array
( '_' ,'_','_' ,'_', "JO","ZH","CH" ,"SH","SCH" ,
return str_replace ( $trans1 ,
$trans2 , $in );
}
?>
0 39 0
Без комментариев...