PHP Password Generator
Function to simply generate a random password.
Copy this code and paste it in your HTML
function generatePassword($length=8)
{
$password = '';
for($i=0; $i<8; $i++) {
$password .= $chars[$i];
}
return $password;
}
Report this snippet
Comments
Subscribe to comments