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



randomcompat_strlen ›

Sincen/a
已弃用n/a
randomcompat_strlen ( $binary_string )
参数:
  • (string) $binary_string
    Required: Yes
返回:
  • (int)
定义在:
文档:

strlen() implementation that isn't brittle to mbstring.func_overload

This version just used the default strlen()



源码

function RandomCompat_strlen($binary_string)
        {
            if (!is_string($binary_string)) {
                throw new TypeError(
                    'RandomCompat_strlen() expects a string'
                );
            }
            return (int) strlen($binary_string);
        }
    }
}