PHP Classes

Text Helper Class: Perform several types of text processing operation

Recommend this page to a friend!
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 58%Total: 416 All time: 6,417 This week: 299Up
Version License PHP version Categories
text 1.0GNU General Publi...4.4Text processing


This class can be used to perform several types of text processing operations. It can:

- Capitalize the first letter of all words of string
- Count the number of non-whitespace characters, words, sentences in a string
- Encode strings for displaying as HTML, in URLs, escaping quotes, as hexadecimal, as Javascript strings, and obfuscate e-mail addresses
- Exclude given words from a string
- Highlight PHP code
- Indent strings
- Limit the length of a string in number or words or characters
- Strip consecutive whitespace characters
- Word wrap strings

Picture of Chris Lam
  Performance   Level  
Name: Chris Lam <contact>
Classes: 3 packages by
Country: Hong Kong Hong Kong
Age: 36
All time rank: 17528 in Hong Kong Hong Kong
Week rank: 341 Up3 in Hong Kong Hong Kong Up
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files  
File Role Description
Accessible without login Plain text file example.php Example class usage example
Plain text file Text.class.php Class The main class

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:6,417
This week:299Up
 User Ratings  
 All time