Test Ar-PHP Functionality Online
Test PHP Function
Sub Class:
- Select one -
AutoSummarize
CharsetD
CompressStr
Date
Gender
Glyphs
Hiero
Identifier
KeySwap
Mktime
Normalise
Numbers
Query
Salat
Sort
Soundex
Standard
Stemmer
StrToTime
Transliteration
WordTag
Method:
- Select one -
en2ar
ar2en
enNum
arNum
string:
[locale]:
Result (
var_dump
output):
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
include
(
'./I18N/Arabic.php'
)
;
$obj
=
new
I18N_Arabic
(
'Transliteration'
)
;
$ar_word_1
=
$obj
->
en2ar
(
$en_word_1
)
;
$en_word_2
=
$obj
->
ar2en
(
$ar_word_2
)
;
Popular
utf8Glyphs
(1224)
ar2en
(973)
money2str
(550)
en2ar
(400)
isFemale
(291)
Recent
setMode
(23 hours)
ar2en
(2 days)
a4MaxChars
(5 days)
utf8Glyphs
(5 days)
a4Lines
(5 days)
Links
Homepage
Download
Bug Report
Feature Request
My Blog
My Twitter
Ads!
Home
|
Twitter
|
Blog
|
Contact
Copyright © 2006 - 2016 Khaled Al-Sham'aa