Created
February 10, 2016 17:57
-
-
Save d30jeff/8c9a993a1fbfa5364d9a to your computer and use it in GitHub Desktop.
Date now minus 4 months
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 characters
| <?php | |
| foreach (range(1,4) as $index) { | |
| $arr[] = date("m/Y", strtotime("-{$index} months")); | |
| } | |
| echo implode("\n", $arr); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment