4.用PHP打印出前一天的时间格式是2006-5-10 22:21:21

echo date('Y-m-d H:i:s', strtotime('-1 days'));

原文地址:https://www.cnblogs.com/xiaorui123/p/5622098.html