blogbysid.wordpress.com
Generate random password in PHP
When creating web apps, there’s often a need to generate a random password for your users. It uses PHP’s handy str_shuffle() function: function random_password( $length = 8 ) { $chars = “abcd…