I'm trying to do a dynamic page for a custom calendar I need
for not repeat all code for every day for 40 days I use
$days= ['Monday','Tuesday','Wednesday','Thursday','Friday'];
then in a for loop
date($myvar) == date('Y-m-d',strtotime($days[$i].' this week'))
the next week works great
date($myvar) == date('Y-m-d',strtotime($days[$i].' next week')
but =all the next are not correct
date($myvar) == date('Y-m-d',strtotime($days[$i].' +2 weeks'))
example: today - Wednesday == 04-04-2018,
Monday +2 weeks == 2018-04-23
Friday +2 weeks == 2018-04-20
any advice how to have one code for a loop and not a single date?