Use microtime(true)
instead.
$time = microtime(true);
$micro = $time - floor($time); // microseconds part
zerkms
2010-10-14 05:25:47
Use microtime(true)
instead.
$time = microtime(true);
$micro = $time - floor($time); // microseconds part
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());