|Info||View files (2)||Download .zip||Reputation||Support forum (2)||Blog|
|Last Updated||Ratings||Unique User Downloads||Download Rankings|
|2008-08-15 (5 years ago)||Not enough user ratings||Total: 245||All time: 6,892 This week: 996|
|numbersequence 1.1||Freeware||5.0||PHP 5|
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".