Answers for "php loop a date function to get the end time as next start date"

PHP
3

php loop through start and end date

$begin = new DateTime( "2015-07-03" );
$end   = new DateTime( "2015-07-09" );

for($i = $begin; $i <= $end; $i->modify('+1 day')){
    echo $i->format("Y-m-d");
}
Posted by: Guest on August-21-2020

Code answers related to "php loop a date function to get the end time as next start date"

Browse Popular Code Answers by Language