Jump to content

Random letter!


Hamlets666

Recommended Posts

that'll give you a string of random letters to any length you want
[code]
function randomkeys($length){
$pattern = "1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
for($i=0;$i<$length;$i++) $key .= $pattern{rand(0,62)};
return $key;
}

$x=randomkeys(1);
echo $x;
[/code]
Link to comment
https://forums.phpfreaks.com/topic/30648-random-letter/#findComment-141210
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.