PHP Classes

PHP Character Counter: Count characters and words of UTF-8 files

Recommend this page to a friend!
  Info   View files View files (1)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 278 All time: 7,591 This week: 339Up
Version License PHP version Categories
content-counter 1.0.0MIT/X Consortium ...5.3PHP 5, Text processing, Console


This class can count characters and words of UTF-8 files.

It can read a given text file and strip line break characters to count its characters and words in several ways.

Currently it counts the number of characters considering they are encoded in UTF-8 and also count the number of words.

The class outputs the number of characters and words to the console.

Counts the characters and words to the provided file.

Picture of Nicola Pietroluongo
  Performance   Level  
Name: Nicola Pietroluongo <contact>
Classes: 2 packages by
Country: United Kingdom
Age: ???
All time rank: 3418152 in United Kingdom
Week rank: 483 Up20 in United Kingdom Up

  Files folder image Files  
File Role Description
Plain text file counter.php Class main class

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:7,591
This week:339Up