<?php
function chinanum($num)
{
$china=array('零','一','二','三','四','五','六','七','八','九');//创建数组
$arr=str_split($num);//把数字分割成数组
for($i=0;$i<count($arr);$i++)
{
echo $china[$arr[$i]];//把数字打印成汉字
}
}
chinanum(34562342);
?>
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!