I know this question is incredibly common, but I’m asking the following (Google yields no results, and the other question which was similar to mine had incorrect source :s):
What would be the best way to get a random 6 character different cased alphabet string eg ‘aWGuPk’/’pZyTFu’ or something of the sort (in PHP)? By ‘best’, the function with the shortest amount of code and most the most efficient?
Sorry if this might be a duplicate of something I can’t find on SO.
Thanks,
Karan
This is the function I use (I must have cut and paste this from somewhere on the internet, can’t remember where!):-
usage:-
Add in uppercase characters to $chars if you want mixed case