php获取毫秒级时间戳

php获取毫秒级时间戳


// 毫秒级时间戳
function getMillisecond() {
	list($t1, $t2) = explode(' ', microtime());
	return (float)sprintf('%.0f',(floatval($t1)+floatval($t2))*1000);
}

//调用
getMillisecond();
posted @ 2017-05-11 11:30  wu_xian  阅读(6575)  评论(0编辑  收藏  举报