跳到主要内容

utf8_len

获取UTF8编码字符串里的字符数量

声明

array utf8_len(string str)

参数

参数名描述
strUTF8编码的字符串

返回值

[ 字符数量, ascii字符数量, 非ascii码字符数量 ]

使用方式

返回文档