PHP: Random Key Generator
Creates a variable length key from a pre-defined set of characters.
Copy this code and paste it in your HTML
function createRandomKey($amount){
$keyset = "abcdefghijklmABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
$randkey = "";
for ($i=0; $i<$amount; $i++)
return $randkey;
}
Report this snippet
Comments
Subscribe to comments