阿拉伯数字 转换 中文大写
class ToChineseNumber {
private $money = "";
private $cnynums = array("零","壹","贰","叁","肆","伍","陆","柒","捌","玖");
private $cnyunits = array("圆","角","分");
private $cnygrees = array("拾","佰","仟","万","拾","佰","仟","亿","拾","佰","仟");
function __construct($money=0){
$this->money = round( $money , 2 );
}
private function cnyMapUnit( $list , $units ) {
$ul = count($units);
$xs = array();
$list = array_reverse($list);
while( list($keys , $vals) = each($list) ){
$l = count($xs);
if ($vals != "0" || !($l%4) ){
$val