Test Ar-PHP Functionality Online

header line!
Test PHP Function
















Ar-PHP Manual

method money2str [line 345]

string money2str( integer $number, [string $iso = 'SYP'], [string $lang = 'ar'])

Spell number in Arabic idiom as money



Tags:

return:  The Arabic idiom that spells inserted number as money
author:  Khaled Al-Sham'aa <khaled@ar-php.org>
access:  public


Parameters:

integer   $number   The number you want to spell in Arabic idiom as money
string   $iso   The three-letter Arabic country code defined in ISO 3166 standard
string   $lang   The two-letter language code in ISO 639-1 standard [ar|en]

Example
  1.      include('./I18N/Arabic.php');
  2.      $obj new I18N_Arabic('Numbers');
  3.  
  4.      $obj->setFeminine(1);
  5.      $obj->setFormat(1);
  6.  
  7.      $integer 2147483647;
  8.  
  9.      $text $obj->int2str($integer);
  10.  
  11.      echo "<p align=\"right\"><b class=hilight>$integer</b><br />$text</p>";
  12.  
  13.      $obj->setFeminine(2);
  14.      $obj->setFormat(2);
  15.  
  16.      $integer 2147483647;
  17.  
  18.      $text $obj->int2str($integer);
  19.  
  20.      echo "<p align=\"right\"><b class=hilight>$integer</b><br />$text</p>";
Popular
Recent
Links
Ads!
footer line!

No Software Patents! General Public License

Home | Twitter | Blog | Contact

Copyright © 2006 - 2016 Khaled Al-Sham'aa