PHP time math calculations
Hallo,
开发者_C百科How can I calculate a current time moment + exactly one week? The same with month. Thanks.
Check out the function strtotime()
- very useful.
echo strtotime("+1 week"), "\n";
$nextWeek = time() + (7 * 24 * 60 * 60);
精彩评论