I have the need to generate a random alphanumeric string of 8 characters. So it should look sort of like b53m1isM
for example. Both upper and lower case, letters and numbers.
I already have a loop that runs eight times and what I want it to do is to concatenate a string with a new random character every iteration.
Here's the loop:
$i = 0;
while($i < 8)
{
$randPass = $randPass + //random char
$i = $i + 1;
}
Any help?