PHP Classes

Classes of R.B. Klaassen

Recommend this page to a friend!
  All class groups  >  All authors  >  Classes of R.B. Klaassen (1)  >  Mission progress status  >  Reputation  
Picture of R.B. Klaassen
Name: R.B. Klaassen <contact>
Classes: 1
Country: The Netherlands The Netherlands
Age: 45
All time rank: 392594 in The Netherlands The Netherlands
Week rank: 200 Up6 in The Netherlands The Netherlands Up
All time users: 266
Week users: 0
 
  A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z  
  Files folder image Number Sequence  
Format an array of numbers as a sequence or ranges
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".
RatingsUtility Consistency Documentation Examples Tests Videos Overall Rank
All time: 83% 83% - 83% - - 58% 1450
Month: Not yet rated by the users


  A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z