andydune/string-container
Composer 安装命令:
composer require andydune/string-container
包简介
Collection of functions fo string modification. Collection is composed as strategy pattern with simple extension.
README 文档
README
It is collection of functions for string modification. Collection is composed as strategy pattern with simple extension.
Actions with string
Remove duplicate space symbols
It replaces spaces, tabs and so on for regular \s with only one space symbol.
use AndyDune\StringContainer\StringContainer; $container = new StringContainer('Very cool.'); 'Very cool' == $container->removeDuplicateSpaces()->getString();
Remove duplicate words
It replaces words, if there are more then one in a string.
use AndyDune\StringContainer\StringContainer; $container = new StringContainer('Very very cool cooly.'); 'Very cool cooly.' == $container->removeDuplicateWords()->getString();
统计信息
- 总下载量: 8
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-06-21