I need to create a random 8 character alphanumeric string. Therefore, it should look, for example, as b53m1isM . Both upper and lower case letters and numbers.
I already have a loop that runs eight times, and I want it to concatenate the string with a new random character at each iteration.
Here's the loop:
$i = 0; while($i < 8) { $randPass = $randPass + //random char $i = $i + 1; }
Any help?
AKor
source share