PHP Classes

class.strings.php: String manipulation functions

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 49%Total: 4,670 All time: 599 This week: 673Down
Version License Categories
strings 1.0Free for non-comm...Text processing
Description 

Author

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.

Picture of Andrew Collington
  Performance   Level  
Name: Andrew Collington <contact>
Classes: 16 packages by
Country: United Kingdom
Age: 50
All time rank: 563 in United Kingdom
Week rank: 53 Up3 in United Kingdom Equal
Innovation award
Innovation award
Nominee: 3x

  Files folder image Files (1)  
File Role Description
Plain text file class.strings.php Class The string functions class

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:4,670
This week:0
All time:599
This week:673Down
User Ratings User Comments (1)
 All time
Utility:82%StarStarStarStarStar
Consistency:82%StarStarStarStarStar
Documentation:-
Examples:-
Tests:-
Videos:-
Overall:49%StarStarStar
Rank:2813