A useful function to generate a random string of a given length in php. The character source set is predefined, but can also be explicitly set. Can have multiple use cases, for example a unique identifier in an application or a handy utility for say a random password generator.

 

Snippet

LEAVE A COMMENT

Notify of
avatar
wpDiscuz