How to generate string in PHP

4 Answers

0 votes
echo substr(str_shuffle(str_repeat('
           ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789', 6)), 0, 6);

/*
run:

D6LgkM

*/

 



answered Aug 21, 2015 by avibootz
0 votes
echo substr(str_shuffle(str_repeat('
                 ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz', 7)), 0, 7);

/*
run:

cyXTolp 

*/

 



answered Aug 23, 2015 by avibootz
0 votes
echo substr(str_shuffle(str_repeat('ABCDEFGHIJKLMNOPQRSTUVWXYZ', 5)), 0, 5);

/*
run:

UIBHE 

*/

 



answered Aug 23, 2015 by avibootz
0 votes
echo substr(str_shuffle(str_repeat('abcdefghijklmnopqrstuvwxyz', 8)), 0, 8);

/*
run:

vtguoiym  

*/

 



answered Aug 23, 2015 by avibootz

Related questions

1 answer 81 views
1 answer 103 views
1 answer 171 views
1 answer 177 views
...