$string="abcdefghijk";
echo str_shuffle($string);
The output is here , you can change this by refreshing this page
jkdfciebhag
$string1="abcdefghijklmnopqrstuvwxyz";
$string2="1234567890";
$string3="!@#$%^&*()_+";
$string=$string1.$string2.$string3;
$string= str_shuffle($string);
echo substr($string,0,8);
we will get 8 char random string to use as password 37!6k9i(
In above case we have used three stings and added them before shuffling to generate password string. You can add more strings like all uppercase alphabets etc to generate desired password. We can take user inputs also to use the combination of strings to generate random password.
suchira | 17-06-2015 |
hey.this site is best.good job friend and wish you all the best carryon.. |