Numeric amount case conversion.
you will need to make sure your server meets the following requirements:
php ^7.2
GMP PHP Extension
BCMath PHP Extension
MBString PHP Extension
mucts/helpers >=0.1.7
composer require mucts/money
- Arabic numeral amount into Chinese capital
<?php
$amount = '¥987654321.01';
// $amount = -12344555.67;
$amountCn = amount_to_cn($amount);
- Convert the amount in Chinese capital into Arabic numerals
<?php
$amount = amount_to_digit($amountCn);
MIT