Generator random string with PHP
Two ways to generate random strings using PHP.
1. With rand method
Use it.
2. With str_shuffle method
The function of str_shuffle()
does not generate cryptographically secure values, and should not be used for cryptographic purposes. If you need a cryptographically secure value, consider using random_int(), random_bytes(), or openssl_random_pseudo_bytes() instead.
Use it