Php – How to get current time in milliseconds in PHP

millisecondsPHPtime

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

Best Answer

The short answer is:

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