Chinaunix's Archiver
论坛
›
PHP
› strtotime 的第二个参数到底是什么意思?
neodreamerus
发表于 2015-12-14 11:46
strtotime 的第二个参数到底是什么意思?
W3Cschool 上说是用来计算返回值的时间戳。如果省略该参数,则使用当前时间。
我试了一下echo strtotime('2015-13-23', time());
echo strtotime('2015-13-23', 0);输出的是一样的结果。
neodreamerus
发表于 2015-12-14 12:33
回复 1# neodreamerus
明白了,在类似 strtotime('+1 week') 这情形下用的
页:
[1]
查看完整版本:
strtotime 的第二个参数到底是什么意思?