Split ascending integers when non-consecutive and assign sequences to values in another array – PHP
I have 2 flat arrays which are Leaders and Members. These arrays are populated while incrementing ids. I would like to associate one leader id with a sequence of consecutive ids in the members array. If there are too many…