在包含的脚本中
date('Y-m-d', strtotime('first day of last month'))
在版本5.3.10(localhost)中,我得到了例如'2012-03-01'.
在版本5.2.17(远程主机)中我得到'1969-12-31'.
是否有表达式会返回两个版本的预期结果(例如,'2012-03-01')?
php date
date ×1
php ×1