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 getCharset
[line
142
]
String getCharset( String $string)
Find the most possible character set for given Arabic string in unknown format
Tags:
return:
The most possible character set for given Arabic string in unknown format[utf-8|windows-1256|iso-8859-6]
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
(1234)
ar2en
(981)
money2str
(553)
en2ar
(401)
isFemale
(291)
Recent
utf8Glyphs
(10 days)
identify
(22 days)
stripTashkeel
(22 days)
normalise
(34 days)
en2ar
(34 days)
Links
Homepage
Download
Bug Report
Feature Request
My Blog
My Twitter
Ads!
Home
|
Twitter
|
Blog
|
Contact
Copyright © 2006 - 2016 Khaled Al-Sham'aa