How to get current time in milliseconds in PHP?

COMer picture COMer · Sep 7, 2010 · Viewed 410.1k times · Source

time() is in seconds - is there one in milliseconds?

Answer

laurent picture laurent · Jul 11, 2012

The short answer is:

$milliseconds = round(microtime(true) * 1000);