microtime() returns the current Unix timestamp with microseconds. microtime function is only available on operating systems that support the gettimeofday() system call. This function returns the string "microsec sec", where sec is the number of seconds since the Unix Epoch (0:00:00 January 1, 1970 GMT), and microsec is the microseconds part. Notice that both parts are returned in units of seconds.
Syntax of microtime() Function PHP
Parameter & Description of microtime() Function PHP
get_as_float - this is an optional parameter that is used for returning the result in float while the default result is in string.
Example on microtime() Function PHP
The output of the code above could be:
Recommend the tutorial