获取毫秒级时间戳

public function getMsecTime()
{
  list($msec, $sec) = explode(' ', microtime());
  $msectime = (float)sprintf('%.0f', (floatval($msec) + floatval($sec)) * 1000);
  return $msectime;
 
}

原文地址:https://www.cnblogs.com/DevilBoy/p/14087644.html