Created
April 13, 2015 12:14
-
-
Save trivoallan/91f53c41111a4e097578 to your computer and use it in GitHub Desktop.
Date Ouiedire / MonsterK7
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 = mktime(0, 0, 0, 4, 20, 2015); | |
$date = strtotime('-7 years', $date); | |
$date = strtotime('-10 months', $date); | |
$date = strtotime('-5 days', $date); | |
var_dump(date('Y-m-d', $date)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment