PHP code example of alcea / ro-num
1. Go to this page and download the library: Download alcea/ro-num 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/ */
alcea / ro-num example snippets
composer
# ea\romanian\TranslateNumberToTxt;
$number = '22620';
echo new TranslateNumberToTxt($number); // douăzeci şi două de mii şase sute douăzeci
echo new TranslateNumberToTxt($number, '#'); // douăzeci#şi#două#de#mii#şase#sute#douăzeci
echo new TranslateNumberToTxt($number, ''); // douăzecişidouădemiişasesutedouăzeci
// or
echo TranslateNumberToTxt::convert(255); // 'două sute cincizeci şi cinci'
echo TranslateNumberToTxt::convert(83, '#'); // 'optzeci#şi#trei'