Test Ar-PHP Functionality Online

header line!
Test PHP Function










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
  1.    include('./I18N/Arabic.php');
  2.    $obj new I18N_Arabic('CharsetD');
  3.  
  4.    $charset $obj->getCharset($text);
Popular
Recent
Links
Ads!
footer line!

No Software Patents! General Public License

Home | Twitter | Blog | Contact

Copyright © 2006 - 2016 Khaled Al-Sham'aa