PHP code example of abivia / money
1. Go to this page and download the library: Download abivia/money 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/ */
abivia / money example snippets
echo bcdiv('35.04', '1.15', 2);
30.46
use Abivia\Money;
Money::setScale(2);
echo Money::make('35.04')->div('1.15');
30.47