输入banner图图片脚本导航/分类

PHP在CLI运行的时候strtotime('2016-9-2259:59:59')无法返回时间戳

PHP在CLI运行的时候strtotime('2016-9-22 59:59:59') 无法返回时间戳,可是这个时间明明是正确的啊???

回复内容:

PHP在CLI运行的时候strtotime('2016-9-22 59:59:59') 无法返回时间戳,可是这个时间明明是正确的啊???

$ php -r "var_dump(strtotime('2016-9-22 59:59:59'));"
bool(false)

时间格式不合法返回时,strtotime函数返回false。这里的59点。。。

php5.1.0之前,出错返回-1