date("Ym", strtotime("-1 day")); //前一天
date("Ym", strtotime("+1 day")); //后一天
strtotime — 将任何英文文本的日期时间描述解析为 Unix 时间戳
date就是PHP的日期时间函数了。
date("Ym", strtotime("-1 day")); //前一天
date("Ym", strtotime("+1 day")); //后一天
strtotime — 将任何英文文本的日期时间描述解析为 Unix 时间戳
date就是PHP的日期时间函数了。