How to use microtime in PHP

This article describe about microtime() function in PHP.
  • 2268

microtime() function

The current Unix timestamp with microsecond return by the microtime() function.

Syntax

microtime(get_as_float)

 

Parameter Description
get_as_float Optional. it return float instead of string when set True.

Example

<html>
<body>
<?php
echo(microtime());
?>
</body>
</html>

 

Output


pic8.jpg

You may also want to read these related articles Click here

Ask Your Question 

Got a programming related question? You may want to post your question here

Programming Answers here

Categories

More Articles

© 2020 DotNetHeaven. All rights reserved.