To get the dates between the two dates , we will simply convert the date string to time using strtotime() function then we can print the all the dates between two dates using for loop.
Now we are going to pass the two dates in strtotime() function.Using for loop we will calculate the dates.As we know that one day has 86400 seconds, so we will take the increment 86400 after every one loop. Like. $i=$i+86400;
We can get all any date and time in any format using date() function. E.g date('Y-m-d') , date('Y-m-d H:i:s') etc.
Array (  => 2018-11-01 00:00:00  => 2018-11-02 00:00:00  => 2018-11-03 00:00:00  => 2018-11-04 00:00:00  => 2018-11-05 00:00:00 )