function msectime() {
list($msec, $sec) = explode(’ ', microtime());
m
s
e
c
t
i
m
e
=
(
f
l
o
a
t
)
s
p
r
i
n
t
f
(
′
msectime = (float)sprintf('%.0f', (floatval(
msectime=(float)sprintf(′msec) + floatval(
s
e
c
)
)
∗
1000
)
;
r
e
t
u
r
n
i
n
t
v
a
l
(
sec)) * 1000); return intval(
sec))∗1000);returnintval(msectime);
}
$timestamp = msectime();//当前时间戳13位
原文链接:https://blog.csdn.net/lfbin5566/article/details/123222400