- 1
I want to create a 12 number alphabet as range in PHP like (â Db8jhCn9HMUZâ) it includes lower and upper case letter numbers?
I tried but got only range in lower or uppercase and in numbers but I want tje mixture of it
4 RĂ©ponses
+ 1
Sorry for the late reply.
so this is how you'd go
$token = str_shuffle("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890");
$token = substr($token, 0, 12);
+ 1
create a string containing all the alphabet both in lowercases and uppercases, then str_shuffle() it, then use substr() to return a 12 character long string.
+ 1
Thanks KINGDX
0
can you send me the example or a variable includes str suffle?