Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php random name

    public static function generateRandomString($length = 6): string
    {
        $original_string = array_merge(range(0, 29), range('a', 'z'), range('A', 'Z'));
        $original_string = implode("", $original_string);
        return substr(str_shuffle($original_string), 0, $length);
    }
 
PREVIOUS NEXT
Tagged: #php #random
ADD COMMENT
Topic
Name
1+4 =