Search Posts

Php get random string

Method one: shuffle function (scrambling array) and mt_rand function (generating random numbers, four times faster than rand)

 

Method two, str_shuffle function (scramble string order) and mt_rand function

 

Method three, md5 (), uniqid (), microtime () generate a unique 32-bit string

 

Other way


 

Leave a Reply