PHP获取毫秒值时间戳
PHP大约 205 字- microtime()获取秒,带微秒,字符串形式 '0.98730700 1542263461'
- mircotime(true) 获取秒,微秒拼接在小数点,浮点形式 1542263461.9393
- intval() 去掉小数点部分
- round()保留小数, 比intval更精确
intval(microtime(true) * 1000)
round(microtime(true), 3) * 1000
阅读 648 · 发布于 2019-04-08
————        END        ————
扫描下方二维码关注公众号和小程序↓↓↓

昵称:
随便看看换一批