Exemple #1
0
 * @category  I18N
 * @package   I18N_Arabic
 * @author    Khaled Al-Sham'aa <*****@*****.**>
 * @copyright 2006-2016 Khaled Al-Sham'aa
 *
 * @license   LGPL <http://www.gnu.org/licenses/lgpl.txt>
 * @link      http://www.ar-php.org
 */
error_reporting(E_STRICT);
$time_start = microtime(true);
$text = '��� ���� ������ ������';
require '../../Arabic.php';
$Arabic = new I18N_Arabic('CharsetD');
$charset = $Arabic->getCharset($text);
echo "{$text} ({$charset}) <br/>";
print_r($Arabic->guess($text));
?>

        </div><br />
        <div class="Paragraph">
            <h2>Example Code:</h2>
            <?php 
$code = <<<END
<?php
    \$text = '��� ���� ������ ������';

    require '../../Arabic.php';
    \$Arabic = new I18N_Arabic('CharsetD');
    
    \$charset = \$Arabic->getCharset(\$text);