📜  如何在php代码示例中从今天开始获得n天

📅  最后修改于: 2022-03-11 14:54:04.825000             🧑  作者: Mango

代码示例1
//Simple method how to get the date of tomorrow, yesterday, etc. is to use: 
$tomorrow = date( "Ymd", strtotime( "+1 days" ) ); 
$dayaftertomorrow = date( "Ymd", strtotime( "+2 days" ) ); 
$yesterday = date( "Ymd", strtotime( "-1 days" ) );