选择语言 :

 Core_Str::count

字符串长度

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

参数列表

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