note 25425 added to function.microtime

From: Date: Mon, 23 Sep 2002 14:16:24 +0000
Subject: note 25425 added to function.microtime
Groups: php.notes 
Request: Send a blank email to php-notes+get-37144@lists.php.net to get a copy of this message
The string that microtime () returns isn't very useful unless you do some work to reformat it to something you can use, for example, in adds. This function returns microtime () in a more useful format. function m_time () // Return a microtime () string in a more useful format { $currenttime = explode (' ',microtime ()); return (float) ($currenttime [0] + $currenttime [1]); } -- http://www.php.net/manual/en/function.microtime.php http://master.php.net/manage/user-notes.php?action=edit+25425 http://master.php.net/manage/user-notes.php?action=delete+25425 http://master.php.net/manage/user-notes.php?action=reject+25425

« previous php.notes (#37144) next »