Php – Replace recurring values of a flat array with an empty string
I am populating an array of dates from two sources: an array of dates and a range of dates between two dates. $dateann = ['2024-08-16', '2024-08-11', '2024-08-16', '2024-09-16']; $period = CarbonPeriod::between('2024-08-01', '2024-08-31'); foreach ($period as $date) { $days[] = $date->format('Y-m-d');…