Hello,
I'm having a little problem with generating random array of letters and numbers. I would like php to select 6 random letters or numbers. Here part of the code;
mt_srand((double)microtime()*1000000);
$yo1 = array("a","b","c","d","e","1","2","3","4","5"
;
$yo1 = $yo1[rand(0,count($yo1))];
print $yo1;
So the result should look something like this;
b42daf
Any asistance would be helpful.
Thank you
Kyle
I'm having a little problem with generating random array of letters and numbers. I would like php to select 6 random letters or numbers. Here part of the code;
mt_srand((double)microtime()*1000000);
$yo1 = array("a","b","c","d","e","1","2","3","4","5"

$yo1 = $yo1[rand(0,count($yo1))];
print $yo1;
So the result should look something like this;
b42daf
Any asistance would be helpful.
Thank you
Kyle