Download the PHP package try/clear-string without Composer
On this page you can find all versions of the php package try/clear-string. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download try/clear-string
More information about try/clear-string
Files in try/clear-string
Download try/clear-string
More information about try/clear-string
Files in try/clear-string
Vendor try
Package clear-string
Short Description string utility package for clearing special characters
License GPL-2.0
Package clear-string
Short Description string utility package for clearing special characters
License GPL-2.0
Please rate this library. Is it a good library?
Informations about the package clear-string
clear-string
string utility package for clearing special characters
Install
Usage
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
All versions of clear-string with dependencies
PHP Build Version
Package Version
No informations.
The package try/clear-string contains the following files
Loading the files please wait ...