Skip to content

Instantly share code, notes, and snippets.

View generate_password.php
<?php
/**
* Generate Password
*/
function generate_password($len)
{
$chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890~!@#$%^&*.?";
$max = strlen($chars) - 1;