Text processing: class.strings.php
Andrew Collington (contact me)
A collection of string related functions. These functions work on strings, arrays of strings (any depth). Methods include:
validateString()
validateArray()
validateEmail()
convertSymbolsToEntities()
convertTextToHTML()
trimStringToLength()
trimWordFromString()
trimFirstWordFromString()
trimLastWordFromString()
trimString()
trimStringLeft()
trimStringRight()
addSlashesToString()
trimSlashesFromString()
processFunction()
getOrdinalString()
getPluralString()
trimNewlinesFromString()
trimCarriageReturnsFromString()
getFileExtension()
getFileName()
getFileSize()
countWords()
countSentences()
countParagraphs()
getStringInformation()
Full documentation of these methods can be found within the class comments.
| Utility
| Consistency
| Docs
| Examples
| Tests
| Videos
| Overall
| Rank
|
| Sufficient (79.2%)
| Sufficient (79.2%)
| -
| -
| -
| -
| Not sure (47.5%)
| 1380 |
Click here for detailed information about this class on phpclasses.org