PHP code example of medboubazine / number_format
1. Go to this page and download the library: Download medboubazine/number_format 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/ */
medboubazine / number_format example snippets
Medboubazine\NumberFormatter\NumberFormat::parse(1.2335566)->get(2); // 1.23
Medboubazine\NumberFormatter\NumberFormat::parse(1.2335566,2); // 1.23