I’m working on an array of numeric values.
I have a array of numeric values as the following in PHP
11,12,15,16,17,18,22,23,24
And
You have to code it yourself ;-)
The algorithm is quite simple:
currentItem = prevItem + 1
then you haven't found a new range. Continue.