PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Alessio Felicioni   In Lettere   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example script
Class: In Lettere
Spell number amounts using Italian words
Author: By
Last change: Update of example.php
Date: 6 months ago
Size: 363 bytes
 

Contents

Class file image Download
<?php
require 'src/InLettere/Cifra.php';

use \
InLettere\Cifra;

$aImportiDaCodificare = array(
   
'1',
   
'999999900',
   
'2199999900',
   
'3106806100',
   
'174862185100',
   
'3104843109800'
);

foreach (
$aImportiDaCodificare as $v) {
   
printf("traduzione, in cents<br>importo: <code>%s €c</code><br>in lettere: <code>%s €</code><br><br>", $v, Cifra::inLettere($v));
}
?>