Answers for "php get next monday from given date in loop"

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
0

php code for getting the next day

$tomorrow = date("Y-m-d", strtotime("+1 day"));
Posted by: Guest on May-18-2021

Code answers related to "php get next monday from given date in loop"

Browse Popular Code Answers by Language