php 返回当前的毫秒时间戳 可刷新运行 刷新

代码:

echo microtime()."\r\n";
echo msectime();
function msectime() {
    list($msec, $sec) = explode(' ', microtime());
    $msectime = (float)sprintf('%.0f', (floatval($msec) + floatval($sec)) * 1000);
    return $msectime;
 }

输出:

0.87099100 1574316044
1574316044871