阮一峰的IT笔记首页 - > 日期 - > 2007年12月查看所有文章:按分类 | 按月份

« 2007年11月 | 首页 | 2008年01月 »

2007年12月

PHP: UTF-8兼容的substr()函数

function utf8_substr($str,$start) { /* UTF-8 version of substr(), for people who can't use mb_substr() like me. Length is not the count of Bytes, but the count of UTF-8 Characters Author: Windix Feng Bug report to: windix(AT)gmail.com, http://www.douzi.org - History...

阅读全文…… »