Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

generate random string php

function RandomString($length = 10) {
    return substr(str_shuffle(str_repeat($x='0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ', ceil($length/strlen($x)) )),1,$length);
}

echo  RandomString();  
 
PREVIOUS NEXT
Tagged: #generate #random #string #php
ADD COMMENT
Topic
Name
7+5 =