I18N_Arabic

# Class: I18N_Arabic_CharsetD Source Location: /Arabic/CharsetD.php
### Class Overview
This PHP class detect Arabic string character set #### Author(s): Khaled Al-Sham'aa <khaled@ar-php.org> #### Copyright: 2006-2013 Khaled Al-Sham'aa | ### Methods getCharset guess
### Class Details [line 96] This PHP class detect Arabic string character set #### Tags:
author: | Khaled Al-Sham'aa <khaled@ar-php.org>
copyright: | 2006-2013 Khaled Al-Sham'aa
link: | http://www.ar-php.org
license: | LGPL
[ Top ] ### Class Methods ### method getCharset [line 153]
`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
[ Top ] ### method guess [line 117]
`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
[ Top ] Documentation generated on Mon, 14 Jan 2013 17:48:41 +0100 by phpDocumentor 1.4.0