tags:

views:

34

answers:

2
+1  Q: 

PHP microtime()

+1  A: 

Use microtime(true) instead.

$time = microtime(true);
$micro = $time - floor($time); // microseconds part
zerkms
A: 

Use $micro{$i}=$time{$i}; instead of $micro{i}=$time{i};

But much better way to do stuff like this:

list($timestamp, $microseconds) = split(" ", microtime());

Kiryaka