PHP code example of rcngo / pt-br-number-in-words
1. Go to this page and download the library: Download rcngo/pt-br-number-in-words 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/ */
rcngo / pt-br-number-in-words example snippets
{
" "rcngo/pt-br-number-in-words": "1.2.*"
}
}
NumberInWords::convertToWords(1);
//Return um real
NumberInWords::convertToWords(1, false);
//Return um
NumberInWords::convertToWords(1, false, true);
//Return uma