axy/binary
最新稳定版本:0.2.0
Composer 安装命令:
composer require axy/binary
包简介
Working with binary strings
README 文档
README
Working with binary strings in PHP. At the moment this package doesn't make much sense. Used by some other packages.
Documentation
Native string functions allow to work with text strings as with binary (a char is a byte). The problem is that these functions can be overridden from mbstring.
The library uses mbstring functions with the charset 8bit.
And native functions if mbstring is not enabled.
Binary
Class axy\binary\Binary with static methods.
getLength(string $string): intgetSlice(string $string, int $offset [, int $length]): stringgetByteFromChar(string $char [, bool $signed = FALSE]): intgetByteFromString(string $string, int $index [, bool $signed = FALSE]): intunpackBytes(string $string [, bool $signed = false]): int[]
统计信息
- 总下载量: 25.89k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-12-02