Skip to content

Instantly share code, notes, and snippets.

@trescenzi
Created May 23, 2012 00:21
Show Gist options
  • Save trescenzi/2772499 to your computer and use it in GitHub Desktop.
Save trescenzi/2772499 to your computer and use it in GitHub Desktop.
function get_random_id()
{
$random = '';
for ($i = 1; $i <= 8; $i++)
{
$random.= mt_rand(0, 9);
}
return $random;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment