PHP code example of chuoke / rmb-capital

1. Go to this page and download the library: Download chuoke/rmb-capital 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/ */

    

chuoke / rmb-capital example snippets


$rmbCapital = new Chuoke\RmbCapital\RmbCapital();

echo $rmbCapital->convert(123456789.01);
// 人民币壹亿贰仟叁佰肆拾伍万陆仟柒佰捌拾玖元零壹分

$rmbCapital->withoutPrefix()->convert(123456789.01);
// 壹亿贰仟叁佰肆拾伍万陆仟柒佰捌拾玖元零壹分