PHP microtime ()
Here is my code:
<?
$time = microtime();
$len = strlen($time);
echo $time;
echo"<br>".$len."<br>";
$micro;
$i = 0;
while ($time{$i} != " ")
{
$micro{i}=$time{i};
echo $micro{i};
$i=$i+1;
}
?>
The output I get is 0000000000 (i.e. $ micro). Here I am trying to get the microsecond part of the output.
Is there something wrong?
+3
2 answers