选择语言 :

 Core_Str::strlen

字符串长度

null Core_Str::strlen( [ $encoding $encoding = string(5) "utf-8" ] )

参数列表

参数 类型 描述 默认值
$encoding $encoding 字符编码,默认utf-8 string(5) "utf-8"
File: ./core/classes/str.class.php
public function strlen($encoding = 'utf-8')
{
    return mb_strlen($this->data, $encoding);
}