考试
1970-01-01 08:00:00

用PHP打印出前一天的时间格式是2012-4-2 12:28

题目描述

用PHP打印出前一天的时间格式是2012-4-2 12:28:21

答案解析

date("Y-m-d H:i:s", strtotime("-1 day",time()))date("Y-m-d H:i:s", strtotime("-1 days"))date("Y-m-d H:i:s", strtotime("-1 days",time()))date("Y-m-d H:i:s", strtotime("-1 day"))

加载中...
AI正在思考中,请稍候...