Home > Backend Development > PHP Tutorial > 亲们,为啥上面这段话中$mtime[1] + $mtime[0]; 是开始时间啊

亲们,为啥上面这段话中$mtime[1] + $mtime[0]; 是开始时间啊

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-23 13:55:07
Original
1370 people have browsed it

set_magic_quotes_runtime(0);
$mtime = explode(' ', microtime());
$discuz_starttime = $mtime[1] + $mtime[0];

亲们,为啥上面这段话中$mtime[1] + $mtime[0];
是开始时间啊


回复讨论(解决方案)

不明白你问的是什么意思

microtime() 返回由  当前时间的小数部分 和  当前时间的unix时间戳 组成的串

就是微秒的??搓。

microtime(true);//用这个也行,只取两位小数
Copy after login

Related labels:
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