2015
07-04
07-04
PHP将人民币中金额数字转化为中文大写代码
主体代码:functiontoChineseNumber($money){$money=round($money,2);$cnynums=array("零","壹","贰","叁","肆","伍","陆","柒","捌","玖");$cnyunits=array("圆","角","分");$cnygrees=array("拾","佰","仟","万","拾","佰","仟","亿");list($int,$dec)=explode(".",$money,2);$dec=array_filter(array($dec[1],$dec[0]));$ret=array_merge($dec,array(implode("",$this->cnyMap...
继续阅读 >