Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 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->format( pi() ) );
19
        myPrint( $currency->format( 1000 ) );
20
 
21
        myPrint( $currency->format( pi() , I18N_CURRENCY_INTERNATIONAL ) );
22
        myPrint( $currency->format( 1000.99 , I18N_CURRENCY_INTERNATIONAL ) );
23
    }
24
 
25
 
26
 
27
 
28
 
29
 
30
 
31
    function myPrint( $string )
32
    {
33
        print "$string<br><br>";
34
    }
35
?>