shouding/mix-string
Composer 安装命令:
composer require shouding/mix-string
包简介
When unicode characters and ascii characters mixed, according to your needs, calculate the length of the string
README 文档
README
Description
When unicode characters and ascii characters mixed, according to your needs, calculate the length of the string
Example
need composer
{
"require": {
"shouding/mix-string": "1.0.0"
}
}
>>> require('vendor/autoload.php') => Composer\Autoload\ClassLoader {#162} >>> use Shouding\Mix\Str; => null >>> Str::length("this is a test 中国") => 6 >>> Str::length("this is a test 中国", Str::TYPE_CHAR) => 17 >>> Str::length("this is a test 中国", Str::TYPE_BYTES) => 21
统计信息
- 总下载量: 14
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD
- 更新时间: 2016-06-18