To generate random alphanumeric string there are many ways to generate a random, unique, alphanumeric string in PHP. The following ways to generate random alphanumeric string
The str_shuffle() function is an inbuilt function in PHP and is used to randomly shuffle all the characters of a string passed to the function as a parameter. When a number is passed, it treats the number as the string and shuffles it. This function does not make any change in the original string or the number passed to it as a parameter. Instead, it returns a new string which is one of the possible permutations of the string passed to it in the parameter.

#php

PHP generate random alphanumeric string
2.10 GEEK