now, really fixed example in microtime()

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@43873 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Jesus M. Castagnetto 2001-03-20 00:57:21 +00:00
parent 6229a009fc
commit 197e77fb09

View file

@ -636,7 +636,7 @@ echo gmstrftime ("%b %d %Y %H:%M:%S", mktime (20,0,0,12,31,98))."\n";
<title><function>microtime</function> example</title>
<programlisting role="php">
function getmicrotime(){
list($sec, $usec) = explode(" ",microtime());
list($usec, $sec) = explode(" ",microtime());
return ((float)$usec + (float)$sec);
}