06-09-2008, 01:41 PM
|
#3 (permalink)
|
|
The Contributor
Join Date: Apr 2008
Location: Tampa, FL
Posts: 65
Thanks: 6
|
i've been using this, its been working fine for helping to create my captcha strings.
Code:
public function EvRandString($length=10, $chrs = '1234567890qwertyuiopasdfghjklzxcvbnm'){
for($i=0; $i<$length; $i++){
$result .= $chrs{mt_rand(0, strlen($chrs)-1)};
}
return $result;
}
__________________
"Knowledge is power. Abuse it."~Evulness
My portfolio: www.evularts.com
|
|
|