Home > Backend Development > PHP Tutorial > 请问这句是什么意思呢?

请问这句是什么意思呢?

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-23 14:09:22
Original
1081 people have browsed it

strtotime("+$day day $second second +$date")
Copy after login
Copy after login
Copy after login

完整代码是这样的:
';?>
Copy after login


回复讨论(解决方案)

你运行下不就清楚了

令 $day = $second = 1
$date = '2013-05-09 11:00:00'

则 strtotime("+$day day +$second second $date")
就是 strtotime("+1 day 1 second 2013-05-09 11:00:00")
即返回比 2013-05-09 11:00:00 多 1 天 1 秒 的 unix时间戳

strtotime("+$day day $second second +$date")
Copy after login
Copy after login
Copy after login

是指距离$date日期 $day天 $second秒后的时间戳

http://www.w3school.com.cn/php/func_date_strtotime.asp

是不是应该这么写呢

strtotime("+$day day $second second",$date)
Copy after login
Copy after login

是不是应该这么写呢

strtotime("+$day day $second second",$date)
Copy after login
Copy after login
表示出错了

令 $day = $second = 1
$date = '2013-05-09 11:00:00'

则 strtotime("+$day day +$second second $date")
就是 strtotime("+1 day 1 second 2013-05-09 11:00:00")
即返回比 2013-05-09 11:00:00 多 1 天 1 秒 的 unix时间戳 谢谢,版主好人呢

strtotime("+$day day $second second +$date")
Copy after login
Copy after login
Copy after login

是指距离$date日期 $day天 $second秒后的时间戳

http://www.w3school.com.cn/php/func_date_strtotime.asp 谢谢回答

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template