php get curr time in milliseconds code example
Example 1: show date time with milliseconds php
$now = DateTime::createFromFormat('U.u', microtime(true));
echo $now->format("m-d-Y H:i:s.u");
Example 2: time now with milliseconds php
$d = new DateTime();
echo $d->format("Y-m-d H:i:s.v"); // v : Milliseconds