|
That depends what you are setting $date as- it has to have a value. I've never used strtotime before, so I'm just going by what I'm reading (feel free to read the link, or read the page on w3schools about strotime), but it seems like all it does is parse a date to unix format? If for $date your are using mktime or date, you can do date("y")+1 or $date = mktime(0, 0, 0, date("m"), date("d"), date("y")+1);
|