PHPで前日の日付を算出する

print date("Ymd",strtotime("-1 day"));   //1日前
print date("Ymd",strtotime("-1 week"));  //1週間前
print date("Ymd",strtotime("-1 month")); //1月前
print date("Ymd",strtotime("-1 year"));  //1年前
//
print date("Ymd",strtotime("1 day"));    //1日後
print date("Ymd",strtotime("1 week"));   //1週間後
print date("Ymd",strtotime("1 month"));  //1月後
print date("Ymd",strtotime("1 year"));   //1年後結構便利です。