Last active
January 23, 2018 18:53
-
-
Save styks1111/f777ce5cacd2e588efeb6a8d958c26e2 to your computer and use it in GitHub Desktop.
Revisions
-
styks1111 revised this gist
Jan 23, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -9,5 +9,5 @@ $options = []; foreach($months as $month){ $options[] = $month->format('F Y'); } -
styks1111 revised this gist
Jan 23, 2018 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,6 +2,7 @@ $start = new \DateTime(); $end = clone($start); $end->add(new \DateInterval('P3M')); $interval = new \DateInterval('P1M'); $months = new \DatePeriod($start, $end, $interval); -
styks1111 created this gist
Jan 23, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ <?php $start = new \DateTime(); $end = clone($start); $interval = new \DateInterval('P1M'); $months = new \DatePeriod($start, $end, $interval); $options = []; foreach($months as $month){ $options = $month->format('F Y'); }