note 52933 added to function.microtime
| From: | unluckypixie at osu1 dot php dot net | Date: | Wed, 18 May 2005 09:53:23 +0000 |
| Subject: | note 52933 added to function.microtime | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-89572@lists.php.net to get a copy of this message | ||
I don't know why no-one else has suggested this, but clearly the easiest way to replicate the
PHP5 behaviour is to do:
$mtime = array_sum(explode(" ",microtime()));
I challenge anyone to write it shorter and neater than that ;o)
----
Manual Page -- http://www.php.net/manual/en/function.microtime.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+52933
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+52933&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+52933&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+52933&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+52933&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+52933&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+52933&report=yes
Search -- http://master.php.net/manage/user-notes.php