WordPress开发者和主题制作者的搜索引擎



mb_strlen ›

Since4.2.0
已弃用n/a
mb_strlen ( $str, $encoding = null )
参数: (2)
  • (string) $str The string to retrieve the character length from.
    Required: Yes
  • (string|null) $encoding Optional. Character encoding to use. Default null.
    Required: No
    默认: null
查看:
返回:
  • (int) String length of `$str`.
定义在:
文档:

Compat function to mimic mb_strlen().



源码

function mb_strlen( $str, $encoding = null ) {
		return _mb_strlen( $str, $encoding );
	}
endif;