Skip to main content
4 events
when toggle format what by license comment
Sep 10, 2016 at 7:34 comment added xReprisal for loop is inside foreach, $monthDays[] = $date; would not work.
Sep 10, 2016 at 6:03 vote accept user3442612
Sep 9, 2016 at 23:09 comment added user3442612 It's beautiful , but can I ask, what is the purpose of $day in $monthDays[$day] = $date;? Wouldn't it work with $monthDays[] = $date; especially since the array index starts with 1 in the for loop, and not 0.
Sep 9, 2016 at 21:48 history answered xReprisal CC BY-SA 3.0