Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php generate random string

function RandomString($length = 6) {
    $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);
}
echo RandomString(6);
 
PREVIOUS NEXT
Tagged: #php #generate #random #string
ADD COMMENT
Topic
Name
4+2 =