Showing posts with label function to create random keys for email validation. Show all posts
Showing posts with label function to create random keys for email validation. Show all posts
| 0 comments ]

#******************************************************************************
# function to create random keys for email validation
#******************************************************************************

function randomkeys($length)
{
$pattern = "123456789ABCDEFGHIJKLMNPQRSTUVWXYZ";
for($i=0;$i<$length;$i++)
{
$key .= $pattern{rand(0,33)};
}
return $key;
}


#******************************************************************************