UK [ˈmaɪkrəʊ] US [ˈmaɪkroʊ]

##n.<口>microcomputer;microprocessor

adj.very small

php microtime() function syntax

Function: Return the number of microseconds of the current Unix timestamp

Syntax: microtime(get_as_float)

Parameters:

Parameter Description
get_as_float Optional. When set to TRUE, specifies that the function should return a floating point number, otherwise a string. Default is FALSE.

Description: If the get_as_float parameter is set to TRUE, a floating point number is returned representing the number of seconds in seconds since the Unix epoch that is accurate to microseconds. current time.

php microtime() function example

<?php
echo(microtime());
?>

Run instance»

Click the "Run instance" button to view the online instance

Output:

0.48800000 1524123522
//具体输出视情况而定


<?php
$str1 = microtime(true);
echo $str1;
?>

Run Instance»

Click the "Run Instance" button to view the online instance

Output:

1528178312.841
//具体输出视情况而定