File: Example.php

Recommend this page to a friend!
  Classes of kid goth  >  PHP Number to Text Conversion  >  Example.php  >  Download  
File: Example.php
Role: Example script
Content type: text/plain
Description: Example of use
Class: PHP Number to Text Conversion
Convert numbers to text in English or Spanish
Author: By
Last change:
Date: 5 years ago
Size: 351 bytes
 

Contents

Class file image Download
<?php

require_once './Num2TextEnglish.php';
$objNum2TextEng = new Num2TextEng();

echo
$objNum2TextEng->convertNumber(1000); // The output will be «one thousand»


// =========================

require_once './Num2TextSpanish.php';
$objNum2TextSpa = new Num2Text();

echo
$objNum2TextSpa->convertNumber(1000); // The output will be «mil»


For more information send a message to info at phpclasses dot org.