Reading Micro-seconds

../_images/microtimes.png

There are different ways to access micro seconds in PHP : use the Datetime format of u, which works with Datetime. Or call the microtime() or hrtime() functions, with the true parameter.

But don’t use date(): although it has the same u formatting letter, it never provides it.

See Also

PHP Features