PHP Classes

FBCount: Generate enumerated lists of name

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
Not enough user ratingsTotal: 104 All time: 9,744 This week: 673Up
Version License PHP version Categories
fbcount 1.0GNU Lesser Genera...4.0Text processing
Description 

Author

This class can generate enumerated lists of names.

It takes an array with a list of names and generates a single string separated with commas except the last two names that are separated by the word "and".

The names can be formatted with a configurable template string that is passed to the sprintf function. If the name list array is associative, both the array entry values and keys are passed.

Picture of Nemanja Avramovic
Name: Nemanja Avramovic <contact>
Classes: 9 packages by
Country: Serbia Serbia
Age: 37
All time rank: 2001 in Serbia Serbia
Week rank: 170 Up2 in Serbia Serbia Down
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files (2)  
File Role Description
Plain text file fbcount.class.php Class Class itself
Accessible without login Plain text file fbcount.test.php Example Example of usage

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:104
This week:0
All time:9,744
This week:673Up