MENU

php获取毫秒时间戳

January 18, 2020 • php

function msectime()
{
    list($msec, $sec) = explode(' ', microtime());
    $msectime = (int)sprintf('%.0f', (floatval($msec) + floatval($sec)) * 1000);
    return $msectime;
}
转载请注明出处,并添加原文地址

Archives QR Code Tip
QR Code for this page
Tipping QR Code