Re: Problem with microtime()

From: Date: Fri, 31 Aug 2001 08:51:33 +0000
Subject: Re: Problem with microtime()
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-65427@lists.php.net to get a copy of this message
string microtime(void); you see? you're casting from a string to int by your code: (int) microtime(); you can do: $k = microtime() w/o the (int) "Rosen" <rosen_dm@dir.bg> wrote in message news:20010831084959.93048.qmail@pb1.pair.com... > Hi, > I'm using the following code: > for ($i = 0; $i < 100; $i++) { > $k = (int) microtime(); > echo "<br>$k"; > > for ($j = 0; $j < 10000; $j++) > $m = $j *3; > } > > > but it prints me only "0......" > > > > Where can be problem ? > > > > Thanks, > > Rosen > > > > > > >

« previous php.general (#65427) next »