PHP code example of juniorshyko / phpextensive
1. Go to this page and download the library: Download juniorshyko/phpextensive 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/ */
juniorshyko / phpextensive example snippets
use JuniorShyko\Phpextensive\Extensive;
$e = new Extensive();
echo $e->extensive( 1001 ); // mil e um reais
echo $e->extensive( 1001, Extensive::COIN ); // mil e um reais
echo $e->extensive( 54001.99, Extensive::MALE_NUMBER ); // cinquenta e quatro mil e um e noventa e nove centésimos
echo $e->extensive( 185001.084 ); // cento e oitenta e cinco mil e um reais e oitenta e quatro milésimos
echo $e->extensive( 4001.17, Extensive::MALE_NUMBER ); // quatro mil e um e dezessete centésimos