Create grouped subarrays of dates when non-date values are encountered in a flat array – PHP
I have this array, and I would like to make a new array with date values, but whenever a STOPSALES value is reached, create a new subarray/group, and only store date values. [0]=> string(10) "2023-03-10" [1]=> string(10) "2023-03-11" [2]=> string(10)…