الصفحة الرئيسية
المزايا
المشروع
روابط مفيدة
تنزيل
الأسئلة الشائعة
النسخة القديمة
Related Class Documentation

<?php
require('I18N/Arabic.php');
$Arabic = new I18N_Arabic('Numbers');

$num 24.7;
$str $Arabic->money2str($num'KWD''ar');

echo 
"<p align=\"right\">
      <b class=hilight>
$num
      </b><br />
$str</p>";
    
$str 'مليونين وسبع وأربعون ألفا ومئتين';
$int $Arabic->str2int($str);
    
echo 
"<p align=\"right\">
      <b class=hilight>
$str
      </b><br />
$int</p>";

$data = array(array(11114159265358979),
              array(
2212147483647),
              array(
221'-2749.00317'),
              array(
22217));

foreach(
$data as $case) {
    
$Arabic->setFeminine($case[0]);
    
$Arabic->setFormat($case[1]);
    
$Arabic->setOrder($case[2]);
    
    
$integer $case[3];
    
    
$text $Arabic->int2str($integer);
    
    echo 
"<p align=\"right\">
          <b class=hilight>
$integer
          </b><br />
$text</p>";
}

?>


24.7
أربع و عشرون دينار و سبعمئة فلس

مليونين وسبع وأربعون ألفا ومئتين
2047200

14159265358979
أربع عشرة تريليون و مئة و تسع و خمسون مليار و مئتان و خمس و ستون مليون و ثلاثمئة و ثماني و خمسون ألف و تسعمئة و تسع و سبعون

2147483647
مليارين و مئة و سبعة و أربعين مليون و أربعمئة و ثلاثة و ثمانين ألف و ستمئة و سبعة و أربعين

-2749.00317
سالب ألفين و سبعمئة و تسعة و أربعين فاصلة صفر صفر ثلاثمئة و سبعة عشر

17
السابعة عشرة

Eat one live toad the first thing in the morning and nothing worse will happen to you the rest of the day.
تناول ضفدع حي في الصباح، ولن تصادف ما هو أسوء طيلة ذلك اليوم
Index | Features | ArPHP Project | Useful Links | Download | PHP4!!!

Copyright © 2006 - 2021 Khaled Al-Sham'aa. All Rights Reserved | Sourceforge.net | GitHub.com | Terms Of Use

 

  If not now when? If not you and me who else? | إن لم يكن الآن فمتى؟ إن لم تكن أنت وأنا فمن غيرنا؟