Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > d844d3038ecf40cacd8643348f2e89da > files > 2

php-pear-I18N-1.0.0-4.mga4.noarch.rpm

<?php
    //
    //
    //

    ini_set('include_path',ini_get('include_path').':../..');

    require_once 'I18N/Currency.php';

    $locales = array('de_DE','en_US','fr_FR','it_IT');
            
    foreach( $locales as $aLocale )
    {
        $currency = new I18N_Currency( $aLocale );

        myPrint("<h1>\$currency = new I18N_Currency( '$aLocale' );</h1>");

        myPrint( $currency->format( pi() ) );
        myPrint( $currency->format( 1000 ) );

        myPrint( $currency->format( pi() , I18N_CURRENCY_INTERNATIONAL ) );
        myPrint( $currency->format( 1000.99 , I18N_CURRENCY_INTERNATIONAL ) );
    }







    function myPrint( $string )
    {
        print "$string<br><br>";
    }
?>