note 83504 added to function.microtime
| From: | luke at lucanos dot com | Date: | Wed, 28 May 2008 23:48:08 +0000 |
| Subject: | note 83504 added to function.microtime | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-139959@lists.php.net to get a copy of this message | ||
Rather than using the list() function, etc. I have found the following code to be a bit cleaner and
simpler:
<?php
$theTime = array_sum( explode( ' ' , microtime() ) );
echo $theTime;
# Displays "1212018372.3366"
?>
----
Server IP: 117.104.160.194
Probable Submitter: 202.139.83.24
----
Manual Page -- http://www.php.net/manual/en/function.microtime.php
Edit -- https://master.php.net/note/edit/83504
Del: integrated -- https://master.php.net/note/delete/83504/integrated
Del: useless -- https://master.php.net/note/delete/83504/useless
Del: bad code -- https://master.php.net/note/delete/83504/bad+code
Del: spam -- https://master.php.net/note/delete/83504/spam
Del: non-english -- https://master.php.net/note/delete/83504/non-english
Del: in docs -- https://master.php.net/note/delete/83504/in+docs
Del: other reasons-- https://master.php.net/note/delete/83504
Reject -- https://master.php.net/note/reject/83504
Search -- https://master.php.net/manage/user-notes.php