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

<< Linux | 首页 | 互联网>>

PHP

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...

阅读全文…… »