Skip to content

Instantly share code, notes, and snippets.

@JZersche
Created July 19, 2017 09:08
Show Gist options
  • Save JZersche/118ce32ffb0e7d73c50a13582fc745c0 to your computer and use it in GitHub Desktop.
Save JZersche/118ce32ffb0e7d73c50a13582fc745c0 to your computer and use it in GitHub Desktop.
Generates a Random 15 Alphanumeric Hash
for($i=0;$i<=100;$i++){
echo substr(str_shuffle($string='ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'),0,5).
'-'.substr(str_shuffle($string='ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'),0,5).
'-'.substr(str_shuffle($string='ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'),0,5).'<br />';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment