Test Ar-PHP Functionality Online

header line!
Test PHP Function













Ar-PHP Manual

static method en2ar [line 185]

static String en2ar( string $string, [string $locale = 'en_US'])

Transliterate English string into Arabic by render them in the orthography of the Arabic language



Tags:

return:  Out of vocabulary English string in Arabic characters
author:  Khaled Al-Sham'aa <khaled@ar-php.org>
access:  public


Parameters:

string   $string   English string you want to transliterate
string   $locale   Locale information (e.g. 'en_GB' or 'de_DE')

Example
  1.    include('./I18N/Arabic.php');
  2.    $obj new I18N_Arabic('Transliteration');
  3.  
  4.    $ar_word_1 $obj->en2ar($en_word_1);
  5.    $en_word_2 $obj->ar2en($ar_word_2);
Popular
Recent
Links
Ads!
footer line!

No Software Patents! General Public License

Home | Twitter | Blog | Contact

Copyright © 2006 - 2016 Khaled Al-Sham'aa