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 -
swapAe
swapEa
swapAf
swapFa
checkEn
checkAr
fixKeyboardLang
text:
Result (
var_dump
output):
Ar-PHP Manual
method swapAe
[line
151
]
string swapAe( string $text)
Make conversion to swap that odd Arabic text by original English sentence you meant when you type on your keyboard (if keyboard language was incorrect)
Tags:
return:
Normal English string
author:
Khaled Al-Sham'aa
access:
public
Parameters:
string
$text
Odd Arabic string
Example
include
(
'./I18N/Arabic.php'
)
;
$obj
=
new
I18N_Arabic
(
'KeySwap'
)
;
$str
=
"Hpf lk hgkhs hglj'vtdkK Hpf hg`dk dldg,k f;gdjil Ygn ,p]hkdm ..."
;
echo
"
<p><u><i>Before:</i></u><br />
$str
<br /><br />
"
;
$text
=
$obj
->
swapEa
(
$str
)
;
echo
"
<u><i>After:</i></u><br />
$text
<br /><br />
"
;
Popular
utf8Glyphs
(1224)
ar2en
(973)
money2str
(550)
en2ar
(400)
isFemale
(291)
Recent
stripTatweel
(22 hours)
stem
(22 hours)
tagText
(1 days)
swapAe
(8 days)
normaliseHamza
(8 days)
Links
Homepage
Download
Bug Report
Feature Request
My Blog
My Twitter
Ads!
Home
|
Twitter
|
Blog
|
Contact
Copyright © 2006 - 2016 Khaled Al-Sham'aa