php下一个阿拉伯数字转中文数字的函数
2017-02-06
22
<?php functionch_num($num,$mode=true){ $char=array("零","壹","贰","叁","肆","伍","陆","柒","捌","玖"); $dw=array("","拾","佰","仟","","萬","億","兆"); $dec="點"; $retval=""; if($mode) preg_match_all("/^0*(d*).?(d*)/",$num,$ar); else preg_match_...