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 -
guess
getCharset
string:
Result (
var_dump
output):
Ar-PHP Manual
method guess
[line
106
]
Array guess( String $string)
Count number of hits for the most frequented letters in Arabic language (Alef, Lam and Yaa), then calculate association ratio with each of possible character set (UTF-8, Windows-1256 and ISO-8859-6)
Tags:
return:
Character set as key and string association ratio as value
author:
Khaled Al-Sham'aa <
khaled@ar-php.org
>
access:
public
Parameters:
String
$string
Arabic string in unknown format
Example
include
(
'./I18N/Arabic.php'
)
;
$obj
=
new
I18N_Arabic
(
'CharsetD'
)
;
$charset
=
$obj
->
getCharset
(
$text
)
;
Popular
utf8Glyphs
(989)
ar2en
(947)
money2str
(547)
en2ar
(361)
isFemale
(291)
Recent
utf8Glyphs
(3 days)
setLang
(16 days)
en2ar
(16 days)
standard
(16 days)
soundex
(24 days)
Links
Homepage
Download
Bug Report
Feature Request
My Blog
My Twitter
Ads!
Home
|
Twitter
|
Blog
|
Contact
Copyright © 2006 - 2016 Khaled Al-Sham'aa