Answer the question
In order to leave comments, you need to log in
Generation of unique ID?
uniqid() is the normal way to generate a unique string?
Or is it better to generate a random string and then hash it?
in someone else's code, I mostly meet the second method.
Answer the question
In order to leave comments, you need to log in
Yes, it's not a bad way.
uniqid() is one function,
and hash + random string is at least 2.
Don't over complicate things
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question