Esempio n. 1
0
 * Example of Spell numbers in the Arabic idiom
 *
 * @category  I18N
 * @package   I18N_Arabic
 * @author    Khaled Al-Sham'aa <*****@*****.**>
 * @copyright 2006-2013 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);
require '../../Arabic.php';
$Arabic = new I18N_Arabic('Numbers');
$Arabic->setFeminine(1);
$Arabic->setFormat(1);
$integer = 14159265358979;
$text = $Arabic->int2str($integer);
echo "<center>{$integer}<br />{$text}</center>";
?>

</div><br />
<div class="Paragraph">
<h2>Example Code 1:</h2>
<?php 
$code = <<<END
<?php
    require '../../Arabic.php';
    \$Arabic = new I18N_Arabic('Numbers');

    \$Arabic->setFeminine(1);