I18N
[ class tree: I18N ] [ index: I18N ] [ all elements ]

Source for file I18N_Currency.php

Documentation is available at I18N_Currency.php

  1. <?php
  2.     //
  3.     //
  4.     //
  5.  
  6.     ini_set('include_path',ini_get('include_path').':../..');
  7.  
  8.     require_once 'I18N/Currency.php';
  9.  
  10.     $locales = array('de_DE','en_US','fr_FR','it_IT');
  11.             
  12.     foreach$locales as $aLocale )
  13.     {
  14.         $currency = new I18N_Currency$aLocale );
  15.  
  16.         myPrint("<h1>\$currency = new I18N_Currency( '$aLocale' );</h1>");
  17.  
  18.         myPrint$currency->formatpi() ) );
  19.         myPrint$currency->format1000 ) );
  20.  
  21.         myPrint$currency->formatpi(I18N_CURRENCY_INTERNATIONAL ) );
  22.         myPrint$currency->format1000.99 I18N_CURRENCY_INTERNATIONAL ) );
  23.     }
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.     function myPrint$string )
  32.     {
  33.         print "$string<br><br>";
  34.     }
  35. ?>

Documentation generated on Mon, 11 Mar 2019 15:36:11 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.