Login   Register  
PHP Classes
elePHPant
Icontem

Word Counter: Counts number of words in a text string

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (1)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2007-03-28 (7 years ago) RSS 2.0 feedStarStarStar 56%Total: 897 All time: 3,635 This week: 1,338Up
Version License PHP version Categories  
count_words 1.0Freeware3.0Text processing
Description Author  
This is a very simple class that can be used to count the number of words in a text string.

It normalizes the text string converting several types of word separators into spaces. Then it splits the string into groups of characters separated by spaces.

The class returns the number of groups of characters that contain at least one letter or digit to skip counting groups of characters made only of punctuation or other types of characters.
Picture of Ashish
Name: Ashish <contact>
Classes: 2 packages by
Country: India India
Age: ???
All time rank: 165894 in India India
Week rank: 1811 Down129 in India India Down

  Files folder image Files  
File Role Description
Plain text file count_words.php Class Counts number of words in a string

 Version Control Unique User Downloads Download Rankings  
 0%Total:897All time:3,635
 This week:0This week:1,338Up
 User Ratings  
 
 All time
Utility:93%StarStarStarStarStar
Consistency:93%StarStarStarStarStar
Documentation:-
Examples:-
Tests:-
Videos:-
Overall:56%StarStarStar
Rank:1148