PHP code example of pointybeard / helpers-functions-numbers
1. Go to this page and download the library: Download pointybeard/helpers-functions-numbers 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/ */
pointybeard / helpers-functions-numbers example snippets
declare(strict_types=1);
ns\Numbers;
var_dump(Numbers\currency_format(11.234112));
//string(5) "11.23"
var_dump(Numbers\currency_format(984456.78135274694112, '.', ','));
//string(10) "984,456.78"