function getUniqueCode($length = "")
{
$code = md5(uniqid(rand(), true));
if ($length != "") return substr($code, 0, $length);
else return $code;
}
Generate Random String
Leave a Reply
You must be logged in to post a comment.