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.
|
|
| Name: |
Word Counter |
| Base name: |
count_words |
| Description: |
Counts number of words in a text string |
| Version: |
- |
| PHP version: |
3.0 |
| License: |
Freeware |
| All time users: |
859 users |
| All time rank: |
3557 |
| Week users: |
0 users |
| Week rank: |
2074  |
| |
|
| Ratings | Utility |
Consistency |
Documentation |
Examples |
Tests |
Videos |
Overall |
Rank |
| All time: |
Good (93.8%) |
Good (93.8%) |
- |
- |
- |
- |
Not sure (56.2%) |
1096 |
| Month: |
Not yet rated by the users |
| |
Applications that use this class |
|
|
No application links were specified for this class.

If you know an application of this package, send a message to the
author to add a link here.
| |
Files |
|
|
| File |
Role |
Description |
count_words.php |
Class |
Counts number of words in a string |