Blogger Information
Blog 263
fans 3
comment 2
visits 113366
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
阿拉伯数字转中文
福哥的博客
Original
924 people have browsed it
 <?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!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post