I want to execute a condition during a loop between 2 dates.
This is my code :
for($i = $periodStartAt; $periodStartAt <= $endAt; $i->modify('+1 day')){
// when it's 12 days
// when it's 2 days (after the 12 days)
// when it's 12 days (after the 2 days)
// etc.....
}
Anyone can help with this algorithm ?
Thanks in advance !