Login   Register  
PHP Classes
elePHPant
Icontem

Number Sequence

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author  
Picture of R.B. Klaassen
Name: R.B. Klaassen <e-mail contact>
Packages: 1 Browse all classes by R.B. Klaassen Browse all classes by
Country: The Netherlands The Netherlands - PHP jobs in The Netherlands
Age: 33
All time rank: 332291 in The Netherlands The Netherlands
Week rank: 2197 Up60 in The Netherlands The Netherlands Up


  Detailed description   Download .zip .tar.gz  
This is a very simple class that can be used to format an array of numbers as a sequence of number ranges.

It takes an array of integer numbers and sorts the array.

The class generates a string that represents sequences of contiguous numbers as ranges with the first and the last sequence number separated by dashes. Non contiguous numbers are separated commas.

For instance, array(1,2,3,5,7,8,9) is transformed in the sequence "1-3, 5, 7-9".

  Classes of R.B. Klaassen  >  Number Sequence  >  Download .zip .tar.gz  >  Support forum Support forum (2)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Number Sequence
Base name: numbersequence
Description: Format an array of numbers as a sequence or ranges
Version: 1.1
PHP version: 5.0
License: Freeware
All time users: 235 users
All time rank: 6493
Week users: 0 users
Week rank: 2051 Equal
 
  Groups   Rate classes User ratings   Applications   Files Files  

  Groups  
Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes


  User ratings  
There are not enough user ratings to display for this class.

  Applications that use this class  
No application links were specified for this class.
Add link image If you know an application of this package, send a message to the author to add a link here.
  Files folder image Files  
File Role Description
Accessible without login Plain text file example.php Example Example
Plain text file numberSequence.class.php Class numberSequence class

Download all files: numbersequence.tar.gz numbersequence.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.