PHP code example of angeldanielperegrino / numbers2wordsmx
1. Go to this page and download the library: Download angeldanielperegrino/numbers2wordsmx library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
angeldanielperegrino / numbers2wordsmx example snippets
use js\tools\numbers2wordsmx\Speller;
Speller::spellNumber(123, Speller::LANGUAGE_RU);
// output: сто двадцать три
Speller::spellCurrency(123.45, Speller::LANGUAGE_ENGLISH, Speller::CURRENCY_EURO, true, true);
// output: one hundred and twenty three euro and forty five cents