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 -
stripTatweel
stripTashkeel
normaliseHamza
normaliseLamaleph
unichr
normalise
unshape
utf8Strrev
isTashkeel
isHaraka
isShortharaka
isTanwin
isLigature
isHamza
isAlef
isWeak
isYehlike
isWawlike
isTehlike
isSmall
isMoon
isSun
charName
text:
Result (
var_dump
output):
Ar-PHP Manual
method normalise
[line
241
]
string normalise( string $text)
Takes a string, it applies the various filters in this class to return a unicode normalised string suitable for activities such as searching, indexing, etc.
Tags:
return:
the result normalised string.
author:
Djihed Afifi <
djihed@gmail.com
>
access:
public
Parameters:
string
$text
the text to be normalised.
Example
include
(
'./I18N/Arabic.php'
)
;
$obj
=
new
I18N_Arabic
(
'Normalise'
)
;
$str
=
"Arabic text with tatweel, tashkeel..."
;
echo
"
<p><u><i>Before:</i></u><br />
$str
<br /><br />
"
;
$text
=
$obj
->
stripTatweel
(
$str
)
;
echo
"
<u><i>After:</i></u><br />
$text
<br /><br />
"
;
Popular
utf8Glyphs
(1232)
ar2en
(981)
money2str
(553)
en2ar
(401)
isFemale
(291)
Recent
identify
(16 hours)
stripTashkeel
(19 hours)
normalise
(12 days)
en2ar
(12 days)
ar2en
(12 days)
Links
Homepage
Download
Bug Report
Feature Request
My Blog
My Twitter
Ads!
Home
|
Twitter
|
Blog
|
Contact
Copyright © 2006 - 2016 Khaled Al-Sham'aa