I18N_Arabic
[ class tree: I18N_Arabic ] [ index: I18N_Arabic ] [ all elements ]

Class: I18N_Arabic_Transliteration

Source Location: /Arabic/Transliteration.php

Class Overview


This PHP class transliterate English words into Arabic


Author(s):

Copyright:

  • 2006-2016 Khaled Al-Sham'aa

Methods



Class Details

[line 96]
This PHP class transliterate English words into Arabic



Tags:

author:  Khaled Al-Sham'aa <khaled@ar-php.org>
copyright:  2006-2016 Khaled Al-Sham'aa
link:  http://www.ar-php.org
license:  LGPL


[ Top ]


Class Methods


static method ar2en [line 224]

static String ar2en( string $string, [string $standard = 'UNGEGN'])

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



Tags:

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


Parameters:

string   $string   Arabic string you want to transliterate
string   $standard   Transliteration standard, default is UNGEGN and possible values are [UNGEGN, UNGEGN+, RJGC, SES, ISO233]

[ Top ]

static method arNum [line 349]

static String arNum( string $string)

Render numbers in given string using HTML entities that will show them as Indian digits (i.e. ١, ٢, ٣, etc.) whatever browser language settings are (if browser supports UTF-8 character set).



Tags:

return:  Original string after replace digits by HTML entities that will show given number using Arabic digits
author:  Khaled Al-Sham'aa <khaled@ar-php.org>
access:  public


Parameters:

string   $string   String includes some digits here or there

[ Top ]

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')

[ Top ]

static method enNum [line 325]

static String enNum( string $string)

Render numbers in given string using HTML entities that will show them as Arabic digits (i.e. 1, 2, 3, etc.) whatever browser language settings are (if browser supports UTF-8 character set).



Tags:

return:  Original string after replace digits by HTML entities that will show given number using Indian digits
author:  Khaled Al-Sham'aa <khaled@ar-php.org>
access:  public


Parameters:

string   $string   String includes some digits here or there

[ Top ]


Documentation generated on Fri, 01 Jan 2016 10:26:29 +0200 by phpDocumentor 1.4.0