Jose 123 escreveu:
> And how should i use this? Sorry I don't speak spanish
hehehe.... this is portuguese, not spanish.
Try to use this code:
?php
$time = microtime();
$strsp = " "; // string delimiter.
list ($dt, $t) = explode( $strsp, $time );
/*
$dt -> variable assigned by the user to represent the
fractionary
decimal part of $time
$t -> variable assigned for by user to represent the
integer decimal
part of $time
*/
echo " \$t = " . $t . " s<br /><br />";
echo "\$dt = " . $dt . " s<br /><br />";
echo "\$t + \$dt = ";
echo $t + $dt . " s";
/*
For each new execution of this script, a bigger value than
the previous
$time is generated.
You can use the integer decimal part ($t) to generate a new
unique value
*/
?>
----------------
Ah... you can use too:
http://www.php.net/manual/en/function.uniqid.php
--
zerof
http://www.educar.pro.br/
Apache - PHP - MySQL - Boolean Logics - Project Management
----------------------------------------------------------
Você deve, sempre, consultar uma segunda opinião!
----------------------------------------------------------
Deixe todos saberem se esta informação foi-lhe
útil.
----------------------------------------------------------
You must hear, always, one second opinion! In all cases.
----------------------------------------------------------
Let the people know if this info was useful for you!
----------------------------------------------------------