![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
PHP
文章平均质量分 72
drlan1986
这个作者很懒,什么都没留下…
展开
-
CodeIgniter 数字转换为中文
if ( ! defined(BASEPATH)) exit(No direct script access allowed);/** * CodeIgniter的人民币金额辅助函数 * 其中num2rmb函数的作用是用于将阿拉伯数字金额转换为中文大写金额,如将120.50转换为“壹佰贰拾元伍角零分” * 请在控制器或视图中通过 $this->load->hel转载 2010-01-26 17:12:00 · 341 阅读 · 0 评论 -
PHP截取中文字符串
// Cut_Str;//$sourcestr 是要处理的字符串 //$cutlength 为截取的长度(即字数) function cut_str($sourcestr,$cutlength) { $returnstr=; $i=0; $n=0; $str_length=strlen($sourcestr);//字符串的字节数 while (($n {转载 2010-01-26 17:00:00 · 240 阅读 · 0 评论