Bootstrap

php 处理中文 mb系列函数

mb_substr(str, 0, 7, 'utf-8');  字符串截取,返回处理后的字符串

mb_strlen(str,'utf-8'); 返回字符串长度

;