hughlashbrooke.com
Simple way to generate a random password in PHP - Hugh Lashbrooke
When creating web apps, there's often a need to generate a random password for your users. There are a number of ways to do this, but in needing to do this recently I came up with this very simple function that will generate a password (or other random string) of whatever length you wish.
Hugh Lashbrooke