I would like to calculate the difference of two dates and print all dates between them, for example:
$data_inicio = new DateTime("08-02-2018");
$data_fim = new DateTime("10-03-2018");
($dateInterval = $data_inicio->diff($data_fim);
echo $dateInterval->days;
My return is: 30 .
What I would like to have was the days that are in this range.
Example: 09-02-2018 , 10-02-2018 ..... 09-03-2018 , etc.
How do I recover these values?