PHP - Generate an 8 character hash from an integer
Posted
by doc
on Stack Overflow
See other posts from Stack Overflow
or by doc
Published on 2010-03-26T02:20:10Z
Indexed on
2010/03/26
2:23 UTC
Read the original article
Hit count: 340
Is there a way to take any number, from say, 1 to 40000 and generate an 8 character hash?
I was thinking of using base_convert but couldn't figure out a way to force it to be an 8 character hash.
Any help would be appreciated! Thanks.
© Stack Overflow or respective owner