clue/caret-notation
最新稳定版本:v0.2.0
Composer 安装命令:
composer require clue/caret-notation
包简介
^B A dead-simple PHP library to add caret notation in order to safely show strings that contain ASCII control characters (unprintable characters)
README 文档
README
^B A dead-simple PHP library to add caret notation in order to safely show strings that contain ASCII control characters (unprintable characters)
Quickstart example
Once installed, you can use the following code to use caret notation for any string that (may possibly) contain binary control characters:
$encoder = new Encoder(); $string = "Hello\r\nworld\0"; // Output: Hello^M^Jworld^@ echo $encoder->encode($string); $string = "No control chars"; // Output: No control chars echo $encoder->encode($string);
Install
The recommended way to install this library is through composer. New to composer?
{
"require": {
"clue/caret-notation": "~0.2.0"
}
}
License
MIT
统计信息
- 总下载量: 3.97k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-06-19