1 //得到当前毫秒时间戳 2 public function millStampTime() 3 { 4 list($tmp1, $tmp2) = explode(' ', microtime()); 5 return (float)sprintf('%.0f', (floatval($tmp1) + floatval($tmp2)) * 1000); 6 }
1 //得到当前毫秒时间戳 2 public function millStampTime() 3 { 4 list($tmp1, $tmp2) = explode(' ', microtime()); 5 return (float)sprintf('%.0f', (floatval($tmp1) + floatval($tmp2)) * 1000); 6 }