I am strugging with sleepless nights without knowing how to do this or finding a good example, I have a php array which contains dates, lets say dateArray , dates in the array may be in sequence order or may not, and number of date elements in the array varies for different situation, I want to make a new array of array from my dateArray which will contain all the possible date ranges which shoould be built by the date sequence order,
For example if my dateArray contain elements (dd-mm-yy), 2018-01-01,2018-01-02,2018-01-03,2018-01-05,2018-01-06
The news array i expected should should have following result. 0 ==> 2018-01-01,2018-01-03/ 1 ==> 2018-01-05,2018-01-06
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire