Created
April 20, 2018 07:17
-
-
Save sedera-tax/0838b184e4d80fa07a5cc371d2adb024 to your computer and use it in GitHub Desktop.
add day PHP
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 | |
| $date = "2018-02-01"; | |
| echo date('Y-m-d', strtotime($date. ' + 27 days')); | |
| echo "|"; | |
| echo date('Y-m-d', strtotime($date. ' + 28 days')); | |
| echo "|"; | |
| echo date('Y-m-d', strtotime($date. ' + 29 days')); | |
| ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment