
<?php echo r_string(6);//Where 6 is the number of strings we need (length) ?>
<?php
function r_string($len) {
list($usec, $sec) = explode(' ', microtime());
$seed = (float) $sec + ((float) $usec * 100000);
srand($seed);
$newstring = md5(rand());
if ($len) {
return substr($newstring,0,$len);
} else {
return $newstring;
}
}
?>
Added by roScripts on April-18-2007, 3:53 pm
