PHP code example of simbiat / cute-bytes

1. Go to this page and download the library: Download simbiat/cute-bytes 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/ */

    

simbiat / cute-bytes example snippets


echo \Simbiat\CuteBytes::bytes(1234567890);

echo \Simbiat\CuteBytes::bytes(1234567890, decimals: 3, dec_point: ',', thousands_sep: '.');

echo \Simbiat\CuteBytes::bytes(1234567890, numbers: 0);

echo \Simbiat\CuteBytes::bytes(1234567890, 1024);