Example Code:
<?php
$text = 'بسم الله الرحمن الرحيم';
include('I18N_Arabic.php');
$Arabic = new I18N_Arabic('CharsetC');
$Arabic->setInputCharset('utf-8');
if (isset($_GET['charset'])){
$Arabic->setOutputCharset($_GET['charset']);
}
$charset = $Arabic->getOutputCharset();
$text = $Arabic->convert($text);
echo $text;
?>
Total execution time is 0.04625391960144 seconds
Amount of memory allocated to this script is 357768 bytes
Names of included or required files:
- /srv/www/vhosts/ar-php.org/httpdocs/I18N_Arabic/I18N_Arabic/Examples/ArCharsetC.php
- /srv/www/vhosts/ar-php.org/httpdocs/I18N_Arabic/I18N_Arabic.php
- /srv/www/vhosts/ar-php.org/httpdocs/I18N_Arabic/I18N_Arabic/I18N_Arabic_CharsetC.php
- /srv/www/vhosts/ar-php.org/httpdocs/I18N_Arabic/I18N_Arabic/charset/_windows1256.php
- /srv/www/vhosts/ar-php.org/httpdocs/I18N_Arabic/I18N_Arabic/charset/_utf8.php
Related Class Documentation