note 51760 added to function.microtime
| From: | d dot triendl at aon dot at | Date: | Sun, 10 Apr 2005 10:55:09 +0000 |
| Subject: | note 51760 added to function.microtime | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-87780@lists.php.net to get a copy of this message | ||
james at gogo dot co dot nz made a small mistake:
Here's the fixed one:
<?php
$floattime = (float) array_sum(explode(' ', microtime());
//or shorter
$floattime = array_sum(explode(' ', microtime()));
?>
----
Manual Page -- http://www.php.net/manual/en/function.microtime.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+51760
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+51760&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+51760&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+51760&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+51760&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+51760&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+51760&report=yes
Search -- http://master.php.net/manage/user-notes.php