php 获取毫秒时间戳

 

function getMsec(){//返回毫秒时间戳
    $arr = explode(' ',microtime());
    $hm = 0;
    foreach($arr as $v){
        $hm += floor($v * 1000);
    }
    return $hm;
}

 

posted @ 2018-05-22 10:01  怨灵骑士  阅读(770)  评论(0编辑  收藏  举报