note 9705 added to microtime
| From: | frederic dot bouchery at consultant dot com | Date: | Mon, 20 Nov 2000 12:02:44 +0000 |
| Subject: | note 9705 added to microtime | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-7913@lists.php.net to get a copy of this message | ||
I think, it's better like this :
$time = doubleval(ereg_replace('^0\.([0-9]*) ([0-9]*)$','\\2.\\1',microtime()));
http://www.php.net/manual/fr/function.microtime.php