note 30427 added to function.microtime

From: Date: Tue, 18 Mar 2003 04:43:54 +0000
Subject: note 30427 added to function.microtime
Groups: php.notes 
Request: Send a blank email to php-notes+get-45440@lists.php.net to get a copy of this message
If you want more accuracy, you can use bcadd() on the two values. There is an alternative for you bcmath deprived people though... concat. Look at the following: $temp = explode(" ", microtime()) $time_concat = $temp[1] . substr($temp[0], 1); $time_bcmath = bcadd($temp[1],$temp[0],8); $time_concat == $time_bcmath http://www.pixelated-dreams.com/test/microtime.php to see this and two other examples working. - Davey -- http://www.php.net/manual/en/function.microtime.php http://master.php.net/manage/user-notes.php?action=edit+30427 http://master.php.net/manage/user-notes.php?action=delete+30427 http://master.php.net/manage/user-notes.php?action=reject+30427

« previous php.notes (#45440) next »