note 30427 deleted from function.microtime by didou

From: Date: Mon, 29 Dec 2003 15:20:16 +0000
Subject: note 30427 deleted from function.microtime by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-62635@lists.php.net to get a copy of this message
Note Submitter: davey@its-explosive.net ---- 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

« previous php.notes (#62635) next »