承接 try/clear-string 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

try/clear-string

Composer 安装命令:

composer require try/clear-string

包简介

string utility package for clearing special characters

README 文档

README

string utility package for clearing special characters

Build Status

Install

$ composer require try/clear-string

Usage

<?php
require_once '/path/to/autoload.php';

use TryPhp\stripControlCharacters;

$clearedString = stripControlCharacters("Some Special\nMultiline String"); 
echo $clearedString; // will output "Some Special Multiline String";

API

Functions

stripControlCharacters($contents)

Function to strip control characters from a string. The function will replace \n and \t with a simple whitespace and remove any other control character (\0, \a, \b, \v, \f,\r, \e). So it cleans up the output and allows a more precise text comparison.

Arguments
Argument Type Description
$contents string The string that will be cleared.

stripColorCharacters($contents)

Function to remove escape characters (\e) with following color code (e.g. \e[33m) from a string.

Arguments
Argument Type Description
$contents string The string that will be cleared.

License

GPL-2.0 © Willi Eßer

统计信息

  • 总下载量: 129
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0
  • 更新时间: 2017-10-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固