+ 5
I need some help in php....
https://code.sololearn.com/wWvSYAQ21gRr/?ref=app There is a Random Password Generator and strength checking code... There are many parts which could be improved. Can you tell me how multiple random passwords $pass1, $pass2, $pass3 could be putted in single loop of $pass???
2 ответов
+ 2
Yes, somehow that is helpful.
But exactly, if there is some way to make $pass along with loop of $n, where $n could be taken as 1, 2, 3...
Some kinda
for($n=0;$n<3;$n++){
$pass.$n="";
$plength=10;
for($i=0;$i<$plength;$i++){
$pass.$n=chr(rand(33,122));
}
}
Is that possible somehow?
- 1
h eart's