PHP code example of sergeyakovlev / int-format
1. Go to this page and download the library: Download sergeyakovlev/int-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/ */
sergeyakovlev / int-format example snippets
use function SergeYakovlev\IntFormat\int_format;
$value = -1000000;
// Use cases are equivalent
$formatted_value = int_format($value);
$formatted_value = int_format($value, ' ', '', '−');
// $formatted_value = "−1 000 000"