please help on how to auto-increment the password base on my inputted number.
<?php
function password_generate($chars)
{
$data = '1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZabcefghijklmnopqrstuvwxyz';
return substr(str_shuffle($data), 0, $chars);
}
echo password_generate(9)."\n";
?>
For example, I enter 10 in the input box, the result should be 10 generated passwords.
ASDZXCqwe
zxcASDqff
ASDXZCqwg
ASDXZCSFf
ASWQEGGGx
zxcASFGee
XCVXCVrfd
CVBSDFwer
DFGWXcvvv
CVXDSFDFf
Thanks a bunch for the help.
Aucun commentaire:
Enregistrer un commentaire