Converts Latin Alphabet To English Alphabet

Started on the old forum in June 2007 · view the original in the archive · old links redirect here

2 replies · 478 views · started 19 years ago · 1 min read

2 participants
WhiteWarrior Principal · 1,419 posts #1
<?php 
   function _set_latin1($data)
    {
    $latin2 = array(0=>'¾' , 1=>'š' , 2=>'è' , 3=>'�' , 4=>'ž' , 5=>'ý',
                6=>'á' , 7=>'í' , 8=>'é' , 9=>'ú' , 10=>'ò', 11=>'ô',
            12=>'ó', 13=>'ï', 14=>'å', 15=>'ä', 16=>'¼', 17=>'Š',
            18=>'È', 19=>'�', 20=>'Ž', 21=>'Ý', 22=>'Á', 23=>'Í',
            24=>'É', 25=>'Ú', 26=>'Ò', 27=>'Ô', 28=>'Ó', 29=>'Ï',
            30=>'Å', 31=>'Ä', 32=>'À', 33=>'Ø', 34=>'Ü', 35=>'Ì',
            36=>'Ù', 37=>'Õ', 38=>'Ö', 39=>'à', 40=>'ø', 41=>'ü',
            42=>'ì', 43=>'ù', 44=>'õ', 45=>'ö', 46=>'ê', 47=>'ã');

    $latin1 = array(0=>'l' , 1=>'s' , 2=>'c' , 3=>'t' , 4=>'z' , 5=>'y',
                6=>'a' , 7=>'i' , 8=>'e' , 9=>'u' , 10=>'n', 11=>'o',
            12=>'o', 13=>'d', 14=>'l', 15=>'a', 16=>'L', 17=>'S',
            18=>'C', 19=>'T', 20=>'Z', 21=>'Y', 22=>'A', 23=>'I',
            24=>'E', 25=>'U', 26=>'N', 27=>'O', 28=>'O', 29=>'D',
            30=>'L', 31=>'A', 32=>'R', 33=>'R', 34=>'U', 35=>'E',
            36=>'U', 37=>'O', 38=>'O', 39=>'r', 40=>'r', 41=>'u',
            42=>'e', 43=>'u', 44=>'o', 45=>'o', 46=>'e', 47=>'a');

    return str_replace($latin2, $latin1, $data);
    }
?>
amylee Principal · 1,092 posts #2

doubt it translates english text to latin text more like translates the letters from english to latin

WhiteWarrior Principal · 1,419 posts #3

yes mate, i made a mistake in the title and its latin text to english, usful for the older mobile phone

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close